Skip to content

Commit d332ddd

Browse files
committed
Merge branch 'master' into bzlmod
Incorporates: - bazelbuild#1619 - bazelbuild#1620 Removes --noenable_bzlmod from .bazelrc
2 parents b9aea94 + cd22d88 commit d332ddd

File tree

29 files changed

+197
-31
lines changed

29 files changed

+197
-31
lines changed

.bazelci/presubmit.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ tasks:
3636
shell_commands:
3737
# Install xmllint
3838
- sudo apt update && sudo apt install --reinstall libxml2-utils -y
39+
- echo "build --enable_workspace" >> .bazelrc
3940
- "./test_rules_scala.sh || buildkite-agent annotate --style 'warning' \"Optional build with latest Bazel version failed, [see here](${BUILDKITE_BUILD_URL}#${BUILDKITE_JOB_ID}) (It is not mandatory but worth checking)\""
4041
test_rules_scala_macos:
4142
name: "./test_rules_scala"
@@ -47,16 +48,16 @@ tasks:
4748
platform: windows
4849
shell_commands:
4950
- "bash test_rules_scala.sh"
50-
test_coverage_linux_6_3_0:
51+
test_coverage_linux_6_5_0:
5152
name: "./test_coverage"
5253
platform: ubuntu2004
53-
bazel: 6.3.0
54+
bazel: 6.5.0
5455
shell_commands:
5556
- "./test_coverage.sh"
56-
test_coverage_macos_6.3.0:
57+
test_coverage_macos_6.5.0:
5758
name: "./test_coverage"
5859
platform: macos
59-
bazel: 6.3.0
60+
bazel: 6.5.0
6061
shell_commands:
6162
- "./test_coverage.sh"
6263
test_reproducibility_linux:
@@ -82,13 +83,13 @@ tasks:
8283
examples_linux:
8384
name: "./test_examples"
8485
platform: ubuntu2004
85-
bazel: 6.3.0
86+
bazel: 6.5.0
8687
shell_commands:
8788
- "./test_examples.sh"
8889
cross_build_linux:
8990
name: "./test_cross_build"
9091
platform: ubuntu2004
91-
bazel: 6.3.0
92+
bazel: 6.5.0
9293
shell_commands:
9394
- "./test_cross_build.sh"
9495
lint_linux:

MODULE.bazel.lock

+3-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WORKSPACE

+14-16
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
1515

1616
bazel_skylib_workspace()
1717

18+
http_archive(
19+
name = "rules_python",
20+
sha256 = "ca77768989a7f311186a29747e3e95c936a41dffac779aff6b443db22290d913",
21+
strip_prefix = "rules_python-0.36.0",
22+
url = "https://github.com./bazelbuild/rules_python/releases/download/0.36.0/rules_python-0.36.0.tar.gz",
23+
)
24+
25+
load("@rules_python//python:repositories.bzl", "py_repositories")
26+
27+
py_repositories()
28+
1829
_build_tools_release = "5.1.0"
1930

2031
http_archive(
@@ -127,10 +138,10 @@ format_repositories()
127138

128139
http_archive(
129140
name = "io_bazel_rules_go",
130-
sha256 = "dd926a88a564a9246713a9c00b35315f54cbd46b31a26d5d8fb264c07045f05d",
141+
sha256 = "6dc2da7ab4cf5d7bfc7c949776b1b7c733f05e56edc4bcd9022bb249d2e2a996",
131142
urls = [
132-
"https://mirror.bazel.build/github.com./bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip",
133-
"https://github.com./bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip",
143+
"https://mirror.bazel.build/github.com./bazelbuild/rules_go/releases/download/v0.39.1/rules_go-v0.39.1.zip",
144+
"https://github.com./bazelbuild/rules_go/releases/download/v0.39.1/rules_go-v0.39.1.zip",
134145
],
135146
)
136147

@@ -144,19 +155,6 @@ go_rules_dependencies()
144155

145156
go_register_toolchains(version = "1.19.5")
146157

147-
# Explicitly pull in a different (newer) version of rules_java for remote jdks
148-
rules_java_extra_version = "5.1.0"
149-
150-
rules_java_extra_sha = "d974a2d6e1a534856d1b60ad6a15e57f3970d8596fbb0bb17b9ee26ca209332a"
151-
152-
rules_java_extra_url = "https://github.com./bazelbuild/rules_java/releases/download/{}/rules_java-{}.tar.gz".format(rules_java_extra_version, rules_java_extra_version)
153-
154-
http_archive(
155-
name = "rules_java_extra",
156-
sha256 = rules_java_extra_sha,
157-
url = rules_java_extra_url,
158-
)
159-
160158
load("@rules_java//java:repositories.bzl", "remote_jdk8_repos")
161159

162160
# We need to select based on platform when we use these

dt_patches/test_dt_patches/WORKSPACE

+11
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ http_archive(
1111
],
1212
)
1313

14+
http_archive(
15+
name = "rules_python",
16+
sha256 = "ca77768989a7f311186a29747e3e95c936a41dffac779aff6b443db22290d913",
17+
strip_prefix = "rules_python-0.36.0",
18+
url = "https://github.com./bazelbuild/rules_python/releases/download/0.36.0/rules_python-0.36.0.tar.gz",
19+
)
20+
21+
load("@rules_python//python:repositories.bzl", "py_repositories")
22+
23+
py_repositories()
24+
1425
local_repository(
1526
name = "io_bazel_rules_scala",
1627
path = "../..",

dt_patches/test_dt_patches_user_srcjar/WORKSPACE

+11
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ http_archive(
1111
],
1212
)
1313

14+
http_archive(
15+
name = "rules_python",
16+
sha256 = "ca77768989a7f311186a29747e3e95c936a41dffac779aff6b443db22290d913",
17+
strip_prefix = "rules_python-0.36.0",
18+
url = "https://github.com./bazelbuild/rules_python/releases/download/0.36.0/rules_python-0.36.0.tar.gz",
19+
)
20+
21+
load("@rules_python//python:repositories.bzl", "py_repositories")
22+
23+
py_repositories()
24+
1425
local_repository(
1526
name = "io_bazel_rules_scala",
1627
path = "../..",

examples/crossbuild/.bazelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Remove upon completing Bzlmod compatibility work.
2+
# - https://github.com./bazelbuild/rules_scala/issues/1482
3+
build --noenable_bzlmod

examples/crossbuild/WORKSPACE

+11
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ http_archive(
1111
],
1212
)
1313

14+
http_archive(
15+
name = "rules_python",
16+
sha256 = "ca77768989a7f311186a29747e3e95c936a41dffac779aff6b443db22290d913",
17+
strip_prefix = "rules_python-0.36.0",
18+
url = "https://github.com./bazelbuild/rules_python/releases/download/0.36.0/rules_python-0.36.0.tar.gz",
19+
)
20+
21+
load("@rules_python//python:repositories.bzl", "py_repositories")
22+
23+
py_repositories()
24+
1425
local_repository(
1526
name = "io_bazel_rules_scala",
1627
path = "../..",

examples/scala3/.bazelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Remove upon completing Bzlmod compatibility work.
2+
# - https://github.com./bazelbuild/rules_scala/issues/1482
3+
build --noenable_bzlmod

examples/scala3/WORKSPACE

+11
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ http_archive(
1111
],
1212
)
1313

14+
http_archive(
15+
name = "rules_python",
16+
sha256 = "ca77768989a7f311186a29747e3e95c936a41dffac779aff6b443db22290d913",
17+
strip_prefix = "rules_python-0.36.0",
18+
url = "https://github.com./bazelbuild/rules_python/releases/download/0.36.0/rules_python-0.36.0.tar.gz",
19+
)
20+
21+
load("@rules_python//python:repositories.bzl", "py_repositories")
22+
23+
py_repositories()
24+
1425
local_repository(
1526
name = "io_bazel_rules_scala",
1627
path = "../..",

examples/semanticdb/.bazelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Remove upon completing Bzlmod compatibility work.
2+
# - https://github.com./bazelbuild/rules_scala/issues/1482
3+
build --noenable_bzlmod

examples/semanticdb/WORKSPACE

+11
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ http_archive(
1414
],
1515
)
1616

17+
http_archive(
18+
name = "rules_python",
19+
sha256 = "ca77768989a7f311186a29747e3e95c936a41dffac779aff6b443db22290d913",
20+
strip_prefix = "rules_python-0.36.0",
21+
url = "https://github.com./bazelbuild/rules_python/releases/download/0.36.0/rules_python-0.36.0.tar.gz",
22+
)
23+
24+
load("@rules_python//python:repositories.bzl", "py_repositories")
25+
26+
py_repositories()
27+
1728
local_repository(
1829
name = "io_bazel_rules_scala",
1930
path = "../..",
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
build --enable_platform_specific_config
22
windows:build --enable_runfiles
3+
4+
# Remove upon completing Bzlmod compatibility work.
5+
# - https://github.com./bazelbuild/rules_scala/issues/1482
6+
build --noenable_bzlmod

examples/testing/multi_frameworks_toolchain/WORKSPACE

+11
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ http_archive(
1111
],
1212
)
1313

14+
http_archive(
15+
name = "rules_python",
16+
sha256 = "ca77768989a7f311186a29747e3e95c936a41dffac779aff6b443db22290d913",
17+
strip_prefix = "rules_python-0.36.0",
18+
url = "https://github.com./bazelbuild/rules_python/releases/download/0.36.0/rules_python-0.36.0.tar.gz",
19+
)
20+
21+
load("@rules_python//python:repositories.bzl", "py_repositories")
22+
23+
py_repositories()
24+
1425
local_repository(
1526
name = "io_bazel_rules_scala",
1627
path = "../../..",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Remove upon completing Bzlmod compatibility work.
2+
# - https://github.com./bazelbuild/rules_scala/issues/1482
3+
build --noenable_bzlmod

examples/testing/scalatest_repositories/WORKSPACE

+11
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ http_archive(
1111
],
1212
)
1313

14+
http_archive(
15+
name = "rules_python",
16+
sha256 = "ca77768989a7f311186a29747e3e95c936a41dffac779aff6b443db22290d913",
17+
strip_prefix = "rules_python-0.36.0",
18+
url = "https://github.com./bazelbuild/rules_python/releases/download/0.36.0/rules_python-0.36.0.tar.gz",
19+
)
20+
21+
load("@rules_python//python:repositories.bzl", "py_repositories")
22+
23+
py_repositories()
24+
1425
local_repository(
1526
name = "io_bazel_rules_scala",
1627
path = "../../..",
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
build --enable_platform_specific_config
2-
windows:build --enable_runfiles
2+
windows:build --enable_runfiles
3+
4+
# Remove upon completing Bzlmod compatibility work.
5+
# - https://github.com./bazelbuild/rules_scala/issues/1482
6+
build --noenable_bzlmod

examples/testing/specs2_junit_repositories/WORKSPACE

+11
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ http_archive(
1111
],
1212
)
1313

14+
http_archive(
15+
name = "rules_python",
16+
sha256 = "ca77768989a7f311186a29747e3e95c936a41dffac779aff6b443db22290d913",
17+
strip_prefix = "rules_python-0.36.0",
18+
url = "https://github.com./bazelbuild/rules_python/releases/download/0.36.0/rules_python-0.36.0.tar.gz",
19+
)
20+
21+
load("@rules_python//python:repositories.bzl", "py_repositories")
22+
23+
py_repositories()
24+
1425
local_repository(
1526
name = "io_bazel_rules_scala",
1627
path = "../../..",

scala/private/macros/scala_repositories.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ def rules_scala_setup(scala_compiler_srcjar = None):
104104
http_archive(
105105
name = "rules_java",
106106
urls = [
107-
"https://github.com./bazelbuild/rules_java/releases/download/5.4.1/rules_java-5.4.1.tar.gz",
107+
"https://github.com./bazelbuild/rules_java/releases/download/7.9.0/rules_java-7.9.0.tar.gz",
108108
],
109-
sha256 = "a1f82b730b9c6395d3653032bd7e3a660f9d5ddb1099f427c1e1fe768f92e395",
109+
sha256 = "41131de4417de70b9597e6ebd515168ed0ba843a325dc54a81b92d7af9a7b3ea",
110110
)
111111

112112
if not native.existing_rule("rules_proto"):

scala/private/rules/scala_repl.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def make_scala_repl(*extras):
8282
*[extra["outputs"] for extra in extras if "outputs" in extra]
8383
),
8484
toolchains = [
85-
"//scala:toolchain_type",
85+
Label("//scala:toolchain_type"),
8686
"@bazel_tools//tools/jdk:toolchain_type",
8787
],
8888
cfg = scala_version_transition,

test/proto_cross_repo_boundary/repo.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ def proto_cross_repo_boundary_repository():
22
native.new_local_repository(
33
name = "proto_cross_repo_boundary",
44
path = "test/proto_cross_repo_boundary/repo",
5-
build_file = "test/proto_cross_repo_boundary/repo/BUILD.repo",
5+
build_file = "//test/proto_cross_repo_boundary:repo/BUILD.repo",
66
)

test_cross_build/.bazelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Remove upon completing Bzlmod compatibility work.
2+
# - https://github.com./bazelbuild/rules_scala/issues/1482
3+
build --noenable_bzlmod

test_cross_build/WORKSPACE

+11
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ http_archive(
1111
],
1212
)
1313

14+
http_archive(
15+
name = "rules_python",
16+
sha256 = "ca77768989a7f311186a29747e3e95c936a41dffac779aff6b443db22290d913",
17+
strip_prefix = "rules_python-0.36.0",
18+
url = "https://github.com./bazelbuild/rules_python/releases/download/0.36.0/rules_python-0.36.0.tar.gz",
19+
)
20+
21+
load("@rules_python//python:repositories.bzl", "py_repositories")
22+
23+
py_repositories()
24+
1425
http_archive(
1526
name = "rules_proto",
1627
sha256 = "8e7d59a5b12b233be5652e3d29f42fba01c7cbab09f6b3a8d0a57ed6d1e9a0da",

test_version/.bazelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Remove upon completing Bzlmod compatibility work.
2+
# - https://github.com./bazelbuild/rules_scala/issues/1482
3+
build --noenable_bzlmod

test_version/WORKSPACE.template

+11
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ http_archive(
1111
],
1212
)
1313

14+
http_archive(
15+
name = "rules_python",
16+
sha256 = "ca77768989a7f311186a29747e3e95c936a41dffac779aff6b443db22290d913",
17+
strip_prefix = "rules_python-0.36.0",
18+
url = "https://github.com./bazelbuild/rules_python/releases/download/0.36.0/rules_python-0.36.0.tar.gz",
19+
)
20+
21+
load("@rules_python//python:repositories.bzl", "py_repositories")
22+
23+
py_repositories()
24+
1425
http_archive(
1526
name = "rules_proto",
1627
sha256 = "8e7d59a5b12b233be5652e3d29f42fba01c7cbab09f6b3a8d0a57ed6d1e9a0da",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Remove upon completing Bzlmod compatibility work.
2+
# - https://github.com./bazelbuild/rules_scala/issues/1482
3+
build --noenable_bzlmod

third_party/test/example_external_workspace/WORKSPACE

+11
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ http_archive(
1111
],
1212
)
1313

14+
http_archive(
15+
name = "rules_python",
16+
sha256 = "ca77768989a7f311186a29747e3e95c936a41dffac779aff6b443db22290d913",
17+
strip_prefix = "rules_python-0.36.0",
18+
url = "https://github.com./bazelbuild/rules_python/releases/download/0.36.0/rules_python-0.36.0.tar.gz",
19+
)
20+
21+
load("@rules_python//python:repositories.bzl", "py_repositories")
22+
23+
py_repositories()
24+
1425
local_repository(
1526
name = "io_bazel_rules_scala",
1627
path = "../../..",

third_party/test/proto/.bazelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Remove upon completing Bzlmod compatibility work.
2+
# - https://github.com./bazelbuild/rules_scala/issues/1482
3+
build --noenable_bzlmod

0 commit comments

Comments
 (0)