Skip to content

Commit

Permalink
Fix bzlmod support for bazel 6 (#2989)
Browse files Browse the repository at this point in the history
I'm not going to bother adding a new test for this as Bazel 8 is just
around the corner and Bazel 6 is about to be dropped.
  • Loading branch information
illicitonion authored Nov 7, 2024
1 parent 2257a60 commit d067471
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module(
name = "rules_rust",
version = "0.54.0",
version = "0.54.1",
)

bazel_dep(
Expand Down
5 changes: 4 additions & 1 deletion rust/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ def _rust_impl(module_ctx):
register_toolchains = False,
aliases = toolchain.aliases,
)
return module_ctx.extension_metadata(reproducible = True)
metadata_kwargs = {}
if bazel_features.external_deps.extension_metadata_has_reproducible:
metadata_kwargs["reproducible"] = True
return module_ctx.extension_metadata(**metadata_kwargs)

_COMMON_TAG_KWARGS = dict(
allocator_library = attr.string(
Expand Down
2 changes: 1 addition & 1 deletion version.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""The version of rules_rust."""

VERSION = "0.54.0"
VERSION = "0.54.1"

0 comments on commit d067471

Please sign in to comment.