Skip to content

Commit 0949543

Browse files
authored
Mark kotlin extension as reproducible (#1173)
This removes an unnecessary entry from the lockfiles of rules_kotlin users. Also provides support for managing the corresponding `use_repo` call with `bazel mod tidy` during development.
1 parent 7cf98c9 commit 0949543

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module(
66
)
77

88
bazel_dep(name = "platforms", version = "0.0.6")
9-
bazel_dep(name = "bazel_skylib", version = "1.4.2")
9+
bazel_dep(name = "bazel_skylib", version = "1.6.1")
1010
bazel_dep(name = "rules_java", version = "7.2.0")
1111
bazel_dep(name = "rules_python", version = "0.23.1")
1212
bazel_dep(name = "rules_cc", version = "0.0.8")

src/main/starlark/core/repositories/bzlmod_setup.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Definitions for bzlmod module extensions."""
22

3+
load("@bazel_skylib//lib:modules.bzl", "modules")
34
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
45
load(
56
"//src/main/starlark/core/repositories:initialize.release.bzl",
@@ -38,6 +39,8 @@ def _rules_kotlin_extensions_impl(mctx):
3839
urls = _versions.RBE.URLS,
3940
)
4041

42+
return modules.use_all_repos(mctx, reproducible = True)
43+
4144
rules_kotlin_extensions = module_extension(
4245
implementation = _rules_kotlin_extensions_impl,
4346
tag_classes = tag_classes,

src/main/starlark/core/repositories/versions.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ versions = struct(
3131
# 1. Download archive
3232
# 2. Download dependencies and Configure rules
3333
# --> 3. Configure dependencies <--
34-
SKYLIB_VERSION = "1.4.2",
35-
SKYLIB_SHA = "66ffd9315665bfaafc96b52278f57c7e2dd09f5ede279ea6d39b2be471e7e3aa",
34+
SKYLIB_VERSION = "1.6.1",
35+
SKYLIB_SHA = "9f38886a40548c6e96c106b752f242130ee11aaa068a56ba7e56f4511f33e4f2",
3636
PROTOBUF_VERSION = "3.11.3",
3737
PROTOBUF_SHA = "cf754718b0aa945b00550ed7962ddc167167bd922b842199eeb6505e6f344852",
3838
RULES_JVM_EXTERNAL_TAG = "5.3",

0 commit comments

Comments
 (0)