Commits on Source (10)
-
Matthew Clarkson authoredVerified3228e100
-
Matthew Clarkson authoredVerified19d7849c
-
Matthew Clarkson authoredVerifiedbea62262
-
Matthew Clarkson authoredVerified94280fae
-
Matthew Clarkson authored
A rule is assigned the `kind` from the variable name. This change makes sure that `rule` declarations have the correct `kind`. Documentation strings are moved to global private variables as well.
Verifiedb9248c83 -
Matthew Clarkson authoredVerified793273a2
-
Matthew Clarkson authored
BREAKING CHANGE: `toolchain_local_select#map` is now flipped taking the labels as they keys rather than as the values. Previous releases had the following setup: ```py download_file( name = "abc-arm64-linux-gnu", output = "abc", ) download_file( name = "abc-arm64-linux-musl", output = "abc", ) toolchain_local_select( name = "abc", map = { "arm64-linux-gnu": "@abc-arm64-linux-gnu", "arm64-linux-musl": "@abc-arm64-linux-musl", }, ) ``` This prevented eagarly overfetching all the repositories that would be selected. As of Bazel 7.4.0+[1], it no longer overfetches so the `map` attribute has been switched to a `label_keyed_string_dict`: ```py toolchain_local_select( name = "abc", map = { "@abc-arm64-linux-gnu": "arm64-linux-gnu", "@abc-arm64-linux-musl": "arm64-linux-musl", }, ) ``` The repository rule will _only_ fetch the repostory label that has been selected due to the triplet value matching. Whilst this is a breaking change, it will introduce a regression on Bazel 7.3 and below which will overfetch the repositories. It is *highly* recommended to use Bazel 7.4 and above. [1]: https://github.com/bazelbuild/bazel/commit/6fabb1fc6869a204373e5ee0adde696a659415dd
Verified1d48d2e4 -
Matthew Clarkson authoredVerified7b315544
-
Matthew Clarkson authoredVerified39e9a316
-
Bot authored
# [1.0.0-beta.18](https://git.gitlab.arm.com/bazel/toolchain_utils/compare/v1.0.0-beta.17...v1.0.0-beta.18) (2024-11-20) ### Bug Fixes * bump to `7.1.0+` due to `rctx.getenv` ([3228e100](https://git.gitlab.arm.com/bazel/toolchain_utils/commit/3228e1007aa69e9e6d41dc8cea0f57e3246b2501)) * **toolchain_local_select:** use `label_keyed_string_dict` for `map` attribute ([1d48d2e4](https://git.gitlab.arm.com/bazel/toolchain_utils/commit/1d48d2e43ff1cbe1d2746aa7c7b7b86363fad2a0)) ### BREAKING CHANGES * **toolchain_local_select:** `toolchain_local_select#map` is now flipped taking the labels as they keys rather than as the values. Previous releases had the following setup: ```py download_file( name = "abc-arm64-linux-gnu", output = "abc", ) download_file( name = "abc-arm64-linux-musl", output = "abc", ) toolchain_local_select( name = "abc", map = { "arm64-linux-gnu": "@abc-arm64-linux-gnu", "arm64-linux-musl": "@abc-arm64-linux-musl", }, ) ``` This prevented eagarly overfetching all the repositories that would be selected. As of Bazel 7.4.0+[1], it no longer overfetches so the `map` attribute has been switched to a `label_keyed_string_dict`: ```py toolchain_local_select( name = "abc", map = { "@abc-arm64-linux-gnu": "arm64-linux-gnu", "@abc-arm64-linux-musl": "arm64-linux-musl", }, ) ``` The repository rule will _only_ fetch the repostory label that has been selected due to the triplet value matching. Whilst this is a breaking change, it will introduce a regression on Bazel 7.3 and below which will overfetch the repositories. It is *highly* recommended to use Bazel 7.4 and above. [1]: https://github.com/bazelbuild/bazel/commit/6fabb1fc6869a204373e5ee0adde696a659415dd
Showing
- .bazelversion 1 addition, 1 deletion.bazelversion
- CHANGELOG.md 55 additions, 0 deletionsCHANGELOG.md
- CONTRIBUTING.md 33 additions, 0 deletionsCONTRIBUTING.md
- MODULE.bazel 2 additions, 2 deletionsMODULE.bazel
- MODULE.bazel.lock 10 additions, 10 deletionsMODULE.bazel.lock
- e2e/.bazelversion 1 addition, 1 deletione2e/.bazelversion
- e2e/MODULE.bazel 12 additions, 7 deletionse2e/MODULE.bazel
- e2e/MODULE.bazel.lock 10 additions, 10 deletionse2e/MODULE.bazel.lock
- e2e/test/fixture/repository.bzl 4 additions, 0 deletionse2e/test/fixture/repository.bzl
- toolchain/local/select/repository.bzl 10 additions, 15 deletionstoolchain/local/select/repository.bzl
- toolchain/symlink/path/rule.bzl 3 additions, 1 deletiontoolchain/symlink/path/rule.bzl
- toolchain/symlink/target/rule.bzl 3 additions, 1 deletiontoolchain/symlink/target/rule.bzl
- toolchain/test/rule.bzl 19 additions, 17 deletionstoolchain/test/rule.bzl
- toolchain/triplet/rule.bzl 15 additions, 11 deletionstoolchain/triplet/rule.bzl
CONTRIBUTING.md
0 → 100644