Skip to content

v1.4.0

Choose a tag to compare

@github-actions github-actions released this 23 May 11:04
· 27 commits to main since this release
c8dd927

Using Bzlmod (preferred)

  1. Create a multitool.lock.json (schema)
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_multitool", version = "1.4.0")

multitool = use_extension("@rules_multitool//multitool:extension.bzl", "multitool")
multitool.hub(lockfile = "//:multitool.lock.json")
use_repo(multitool, "multitool")

Using WORKSPACE

  1. Create a multitool.lock.json (schema)
  2. Add to your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "bazel_features",
    sha256 = "06f02b97b6badb3227df2141a4b4622272cdcd2951526f40a888ab5f43897f14",
    strip_prefix = "bazel_features-1.9.0",
    url = "https://github.com/bazel-contrib/bazel_features/releases/download/v1.9.0/bazel_features-v1.9.0.tar.gz",
)

http_archive(
    name = "rules_multitool",
    sha256 = "1037e1b11d42ee56751449b3b1e995ca7b9af76d7665dfefcc7112919551d45b",
    strip_prefix = "rules_multitool-1.4.0",
    url = "https://github.com/theoremlp/rules_multitool/releases/download/v1.4.0/rules_multitool-1.4.0.tar.gz",
)

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_multitool//multitool:multitool.bzl", "multitool")

multitool(
    name = "multitool",
    lockfile = "//:multitool.lock.json",
)

# required since 0.15.0 to enable only downloading tools used by this workspace
load("@multitool//:tools.bzl", "register_tools")

register_tools()

What's Changed

  • Fixes "cd" on Windows when build and repo directory are on different drive by @malkia in #77
  • chore(docs): recommend bazel_env.bzl by @alexeagle in #76

New Contributors

Full Changelog: v1.3.0...v1.4.0