Skip to content

Releases: tweag/rules_sh

Release 0.4.0

22 Dec 10:19
Compare
Choose a tag to compare

0.4.0

Added

  • The new experimental sh_posix_hermetic_toolchain rule provides a hermetic
    alternative to sh_posix_toolchain based on binary bundles defined by
    sh_binaries.
    See PR #34.

  • Add support for Bazel 6 and 7
    See PR #35 & PR #43.

  • Allow disabling the local posix toolchain under bzlmod
    See PR #50

Changed

  • Mark stardoc as a dev_dependency
    See PR #52

MODULE.bazel setup

bazel_dep(name = "rules_sh", version = "0.4.0")

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_sh",
    sha256 = "3243af3fcb3768633fd39f3654de773e5fb61471a2fae5762a1653c22c412d2c",
    strip_prefix = "rules_sh-0.4.0",
    urls = ["https://github.com/tweag/rules_sh/releases/download/v0.4.0/rules_sh-0.4.0.tar.gz"],
)
load("@rules_sh//sh:repositories.bzl", "rules_sh_dependencies")
rules_sh_dependencies()

Release 0.3.0

19 Jul 12:13
06170f1
Compare
Choose a tag to compare

0.3.0 - 2022-07-19

Added

  • The new sh_binaries rule can bundle multiple executable files tracked by
    Bazel into a single target that can be used in a genrule or a custom rule to
    access those tools, either through make variables in a genrule, or through
    the ShBinariesInfo provider.
    See issue #19.

Changed

  • improved support for arm64
    See PR #21

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_sh",
    sha256 = "d668bb32f112ead69c58bde2cae62f6b8acefe759a8c95a2d80ff6a85af5ac5e",
    strip_prefix = "rules_sh-0.3.0",
    urls = ["https://github.com/tweag/rules_sh/archive/v0.3.0.tar.gz"],
)
load("@rules_sh//sh:repositories.bzl", "rules_sh_dependencies")
rules_sh_dependencies()

Release 0.2.0

26 Mar 15:25
c6af1fe
Compare
Choose a tag to compare

0.2.0 - 2020-03-26

Added

  • Define appropriate bzl_library rules, so that rules that depend rules_sh can generate Stardoc documentation.
    See PR #11 and Skydoc's deprecation for the motivation.

Changed

  • sh_posix_toolchain now has a single attribute cmds, which is a string to string dict; instead of having one attribute per member of posix.commands. It is a breaking change if you were calling sh_posix_toolchain directly.

    If you were calling this rule as follows:

    sh_posix_toolchain(cat = "/bin/cat", wc = "/usr/bin/wc")
    

    you should now do:

    sh_posix_toolchain(cmds = { "cat": "/bin/cat", "wc": "/usr/bin/wc" })
    

    See PR #14 and issue #13 for the motivation.

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_sh",
    sha256 = "83a065ba6469135a35786eb741e17d50f360ca92ab2897857475ab17c0d29931",
    strip_prefix = "rules_sh-0.2.0",
    urls = ["https://github.com/tweag/rules_sh/archive/v0.2.0.tar.gz"],
)
load("@rules_sh//sh:repositories.bzl", "rules_sh_dependencies")
rules_sh_dependencies()

Release 0.1.1

23 Jan 10:44
39e3568
Compare
Choose a tag to compare

0.1.1 - 2020-01-23

Changed

  • Avoid finding non-POSIX compliant tools in sh_posix_configure on Windows.
    See #7.

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_sh",
    sha256 = "8f2722359c0e13a258c341aac69b8faa96b21e8f3382bd375d78c52f8b5a3d34",
    strip_prefix = "rules_sh-0.1.1",
    urls = ["https://github.com/tweag/rules_sh/archive/v0.1.1.tar.gz"],
)
load("@rules_sh//sh:repositories.bzl", "rules_sh_dependencies")
rules_sh_dependencies()

Release 0.1.0

13 Nov 12:48
3c2fd6f
Compare
Choose a tag to compare

0.1.0 - 2019-11-13

Added

  • Initial release, see README.md for an overview.
    See #1 for the discussion on naming.

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_sh",
    sha256 = "2613156e96b41fe0f91ac86a65edaea7da910b7130f2392ca02e8270f674a734",
    strip_prefix = "rules_sh-0.1.0",
    urls = ["https://github.com/tweag/rules_sh/archive/v0.1.0.tar.gz"],
)
load("@rules_sh//sh:repositories.bzl", "rules_sh_dependencies")
rules_sh_dependencies()