Skip to content

Release 0.2.0

Compare
Choose a tag to compare
@smelc smelc released this 26 Mar 15:25
· 250 commits to master since this release
c6af1fe

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()