Compare commits

...

1 Commits

Author SHA1 Message Date
Cornelius Riemenschneider
0b4c37ac90 Upgrade to bazel 7.3.1.
Also flip the flag for the repo separator.
2024-08-20 10:41:35 +02:00
4 changed files with 20 additions and 4 deletions

View File

@@ -1,5 +1,17 @@
# allow automatic platform-specific configurations (:linux, :macos, :windows)
common --enable_platform_specific_config
# do not shut down the bazel server on idleness
startup --max_idle_secs=0
common --enable_bzlmod
# use stricter environment filtering for actions
build --incompatible_strict_action_env
# Enable verbose failures so debugging the build is easier
build --verbose_failures
# print test output, like sembuild does.
# Set to `errors` if this is too verbose.
test --test_output all
# because we use --override_module with `%workspace%`, the lock file is not stable
common --lockfile_mode=off
@@ -25,5 +37,9 @@ common --registry=https://bcr.bazel.build
common --@rules_dotnet//dotnet/settings:strict_deps=false
common --experimental_isolated_extension_usages
# performance improvement on Windows
common --incompatible_use_plus_in_repo_names
try-import %workspace%/local.bazelrc

View File

@@ -1 +1 @@
7.2.1
7.3.1

View File

@@ -17,7 +17,7 @@ def _get_dep(repository_ctx, name):
return repository_ctx.path(Label("//java/kotlin-extractor/deps:%s" % name))
def _kotlin_dep_impl(repository_ctx):
_, _, name = repository_ctx.name.rpartition("~")
_, _, name = repository_ctx.name.rpartition("+")
lfs_smudge(repository_ctx, [_get_dep(repository_ctx, name + ".jar")])
# for some reason rules_kotlin warns about these jars missing, this is to silence those warnings

View File

@@ -64,8 +64,8 @@ def _download_lfs(repository_ctx):
srcs = [f for f in dir.readdir() if not f.is_dir]
lfs_smudge(repository_ctx, srcs, executable = repository_ctx.attr.executable)
# with bzlmod the name is qualified with `~` separators, and we want the base name here
name = repository_ctx.name.split("~")[-1]
# with bzlmod the name is qualified with `+` separators, and we want the base name here
name = repository_ctx.name.split("+")[-1]
basenames = [src.basename for src in srcs]
build = "exports_files(%s)\n" % repr(basenames)