Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • bazel/rules_download
1 result
Show changes
Commits on Source (7)
last_rc
# TODO: relax this once we have `use_rule_repo`
7.x
# [1.0.0-alpha.3](https://git.gitlab.arm.com/bazel/rules_download/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2023-12-13)
### Bug Fixes
- scope tool labels to project ([e501415](https://git.gitlab.arm.com/bazel/rules_download/commit/e50141549e50656f2840d4481a5ff7f2f63d8b58))
- set minimum version to Bazel 7 ([e84dd11](https://git.gitlab.arm.com/bazel/rules_download/commit/e84dd11a9e8abf0f34857cdc55293b29f350c04d))
# [1.0.0-alpha.2](https://git.gitlab.arm.com/bazel/rules_download/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2023-12-08)
### Features
......
module(
name = "rules_download",
version = "1.0.0-alpha.2",
version = "1.0.0-alpha.3",
bazel_compatibility = [
">=6.4.0",
">=7.0.0",
],
compatibility_level = 1,
)
......
{
"lockFileVersion": 3,
"moduleFileHash": "b45910c8ac50b2f3413fb6ce63a545705cff4158537b6f964da471bb98770f7d",
"moduleFileHash": "79409fd39ea7316ea70ac1d6a33cff0be760d0c4e38ee9db8aa9c13aea6bb53a",
"flags": {
"cmdRegistries": [
"https://bcr.bazel.build",
......
......@@ -56,7 +56,7 @@ to query the targets within the repository: `bazelisk query @archive//...`.
The rules accept `patches` to modify the content after download. Examples are provided in the [end to end][e2e] tests.
Patches are applied _after_ the `BUILD.bazel` file is written so can be used to customise the targets exposed to the
Bazel build. _Usually_, however, a custom `BUILD.bazel` file is provided to the `template` argument.
Bazel build. _Usually_, however, a custom `BUILD.bazel` file is provided to the `build` argument.
### Commands
......
last_rc
# TODO: relax this once we have `use_rule_repo`
7.x
module(
name = "e2e",
bazel_compatibility = [
">=6.4.0",
">=7.0.0",
],
)
......
{
"lockFileVersion": 3,
"moduleFileHash": "a34c0b63dce3db2326406704501bec857b10fd3f1ab2c2c2e417da842b36547f",
"moduleFileHash": "95968ffe95f96e379ad898645fbcadc7e66518679f115a254d267bd61899fca9",
"flags": {
"cmdRegistries": [
"https://bcr.bazel.build",
......@@ -15,7 +15,7 @@
},
"localOverrideHashes": {
"bazel_tools": "922ea6752dc9105de5af957f7a99a6933c0a6a712d23df6aad16a9c399f7e787",
"rules_download": "b45910c8ac50b2f3413fb6ce63a545705cff4158537b6f964da471bb98770f7d"
"rules_download": "79409fd39ea7316ea70ac1d6a33cff0be760d0c4e38ee9db8aa9c13aea6bb53a"
},
"moduleDepGraph": {
"<root>": {
......@@ -888,7 +888,7 @@
"moduleExtensions": {
"//:MODULE.bazel%_repo_rules": {
"general": {
"bzlTransitiveDigest": "MD6B4Z6FQIQiobtHHkoG8Ore0k3X37moHGyWsvSpNSY=",
"bzlTransitiveDigest": "+/g1CVwHm1KuxlBP10o0j7OG7WClgxSn0Al/WRbMNPw=",
"accumulatedFileDigests": {},
"envVariables": {},
"generatedRepoSpecs": {
......
......@@ -40,6 +40,8 @@ def commands(rctx):
return "@{}".format(workspace)
elif package == name:
return "//{}".format(package)
elif prefix.startswith(workspace):
return "//{}:{}".format(package, name)
elif workspace:
return "@{}//{}:{}".format(workspace, package, name)
else:
......