Skip to content

Commit

Permalink
Mark module extension as reproducible
Browse files Browse the repository at this point in the history
This removes an unnecessary lockfile entry.
  • Loading branch information
fmeum committed May 16, 2024
1 parent ede3957 commit e934702
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module(
)

bazel_dep(name = "bazel_features", version = "1.10.0")
bazel_dep(name = "bazel_skylib", version = "1.3.0")
bazel_dep(name = "bazel_skylib", version = "1.6.1")
bazel_dep(name = "platforms", version = "0.0.9")

bazel_dep(
Expand Down
5 changes: 3 additions & 2 deletions crosstool/setup.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Configure the Apple CC toolchain"""

load("@bazel_skylib//lib:modules.bzl", "modules")
load("//crosstool:osx_cc_configure.bzl", "configure_osx_toolchain")

_DISABLE_ENV_VAR = "BAZEL_NO_APPLE_CPP_TOOLCHAIN"
Expand Down Expand Up @@ -77,8 +78,8 @@ def apple_cc_configure():
"@local_config_apple_cc_toolchains//:all",
)

def _apple_cc_configure_extension_impl(_):
def _apple_cc_configure_extension_impl():
_apple_cc_autoconf_toolchains(name = "local_config_apple_cc_toolchains")
_apple_cc_autoconf(name = "local_config_apple_cc")

apple_cc_configure_extension = module_extension(implementation = _apple_cc_configure_extension_impl)
apple_cc_configure_extension = modules.as_extension(_apple_cc_configure_extension_impl)
6 changes: 3 additions & 3 deletions lib/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def apple_support_dependencies():
http_archive,
name = "bazel_skylib",
urls = [
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.6.1/bazel-skylib-1.6.1.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.6.1/bazel-skylib-1.6.1.tar.gz",
],
sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
sha256 = "9f38886a40548c6e96c106b752f242130ee11aaa068a56ba7e56f4511f33e4f2",
)

_maybe(
Expand Down

0 comments on commit e934702

Please sign in to comment.