Releases: tweag/rules_sh
Releases · tweag/rules_sh
v0.5.0
Using Bzlmod with Bazel 6+
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
For the core module
bazel_dep(name = "rules_sh", version = "0.5.0")
Using WORKSPACE
Paste this snippet into your WORKSPACE.bazel
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_sh",
sha256 = "48b12cb1b2536ef6d8aa6111549098794aa05d21c8cf400493b842943636c709",
strip_prefix = "rules_sh-0.5.0",
urls = ["https://github.com/tweag/rules_sh/releases/download/v0.5.0/rules_sh-0.5.0.tar.gz"],
)
load("@rules_sh//sh:repositories.bzl", "rules_sh_dependencies")
rules_sh_dependencies()
0.5.0
Changed
- Add support for Bazel 8.
See PR #91
Release 0.4.0
0.4.0
Added
-
The new experimental
sh_posix_hermetic_toolchain
rule provides a hermetic
alternative tosh_posix_toolchain
based on binary bundles defined by
sh_binaries
.
See PR #34. -
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
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
theShBinariesInfo
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
0.2.0 - 2020-03-26
Added
- Define appropriate
bzl_library
rules, so that rules that dependrules_sh
can generateStardoc
documentation.
See PR #11 and Skydoc's deprecation for the motivation.
Changed
-
sh_posix_toolchain
now has a single attributecmds
, which is a string to stringdict
; instead of having one attribute per member ofposix.commands
. It is a breaking change if you were callingsh_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" })
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
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
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()