Skip to content

Commit f7bacdf

Browse files
Upgrade Scala 3.7 to 3.7.2 (was 3.7.1) (bazel-contrib#1757)
* Upgrade Scala 3.7 to 3.7.2 (was 3.7.1) * Update compiler sources integrity * Fix internal compiler API incompatibility for reporting.NoExplenation class * Fix lint of BUILD file
1 parent 067667f commit f7bacdf

File tree

15 files changed

+51
-25
lines changed

15 files changed

+51
-25
lines changed

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SCALA_3_VERSIONS = [
2222
"3.3.6",
2323
"3.5.2",
2424
"3.6.4",
25-
"3.7.1",
25+
"3.7.2",
2626
]
2727

2828
SCALA_VERSIONS = SCALA_2_VERSIONS + SCALA_3_VERSIONS

dt_patches/dt_patch_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ $runner test_compiler_patch 3.3.6
118118
$runner test_compiler_patch 3.4.3
119119
$runner test_compiler_patch 3.5.2
120120
$runner test_compiler_patch 3.6.4
121-
$runner test_compiler_patch 3.7.1
121+
$runner test_compiler_patch 3.7.2
122122

123123
$runner test_compiler_srcjar_error 2.12.11
124124
$runner test_compiler_srcjar_error 2.12.12
@@ -151,4 +151,4 @@ $runner test_compiler_srcjar_nonhermetic 3.3.6
151151
$runner test_compiler_srcjar 3.4.3
152152
$runner test_compiler_srcjar_nonhermetic 3.5.2
153153
$runner test_compiler_srcjar_nonhermetic 3.6.4
154-
$runner test_compiler_srcjar_nonhermetic 3.7.1
154+
$runner test_compiler_srcjar_nonhermetic 3.7.2

dt_patches/test_dt_patches_user_srcjar/MODULE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ scala_deps.compiler_srcjar(
170170
version = "3.6.4",
171171
)
172172
scala_deps.compiler_srcjar(
173-
url = "https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.7.1/scala3-compiler_3-3.7.1-sources.jar",
174-
version = "3.7.1",
173+
url = "https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.7.2/scala3-compiler_3-3.7.2-sources.jar",
174+
version = "3.7.2",
175175
)
176176

177177
scala_protoc = use_extension(

dt_patches/test_dt_patches_user_srcjar/WORKSPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ srcjars_by_version = {
142142
"3.6.4": {
143143
"url": "https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.6.4/scala3-compiler_3-3.6.4-sources.jar",
144144
},
145-
"3.7.1": {
146-
"url": "https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.7.1/scala3-compiler_3-3.7.1-sources.jar",
145+
"3.7.2": {
146+
"url": "https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.7.2/scala3-compiler_3-3.7.2-sources.jar",
147147
},
148148
}
149149

examples/scala3/WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ scala_protoc_toolchains(name = "rules_scala_protoc_toolchains")
5757

5858
load("@rules_scala//:scala_config.bzl", "scala_config")
5959

60-
scala_config(scala_version = "3.7.1")
60+
scala_config(scala_version = "3.7.2")
6161

6262
load(
6363
"@rules_scala//scala:toolchains.bzl",

scala/private/macros/compiler_sources_integrity.bzl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,4 +273,8 @@ COMPILER_SOURCES = {
273273
"url": "https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.7.1/scala3-compiler_3-3.7.1-sources.jar",
274274
"integrity": "sha256-C6oxezCyv4+ESER5pl8qPcPhrHv4BEAtmUQ8P+5A/MU=",
275275
},
276+
"3.7.2": {
277+
"url": "https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.7.2/scala3-compiler_3-3.7.2-sources.jar",
278+
"integrity": "sha256-OTs9ZH2xRRy074xVBiFgxnm56RmOQ+gfnyv3BiL1JDQ=",
279+
},
276280
}

scripts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ options:
5151
Scala version for which to update repository
5252
information; if not provided, updates all supported
5353
versions: 2.11.12, 2.12.20, 2.13.16, 3.1.3, 3.2.2,
54-
3.3.6, 3.4.3, 3.5.2, 3.6.4, 3.7.1
54+
3.3.6, 3.4.3, 3.5.2, 3.6.4, 3.7.2
5555
--output_dir OUTPUT_DIR
5656
Directory in which to generate or update repository
5757
files (default: .../third_party/repositories)

scripts/create_repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"3.4.3",
2525
"3.5.2",
2626
"3.6.4",
27-
"3.7.1",
27+
"3.7.2",
2828
]
2929
PARSER_COMBINATORS_VERSION = '1.1.2'
3030
SBT_COMPILER_INTERFACE_VERSION = '1.10.8'

scripts/update_compiler_sources_integrity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
] + [
3838
f'3.6.{patch}' for patch in range(0, 5) # 3.6.0 to 3.6.4
3939
] + [
40-
f'3.7.{patch}' for patch in range(0, 2) # 3.7.0 to 3.7.1
40+
f'3.7.{patch}' for patch in range(0, 3) # 3.7.0 to 3.7.2
4141
]
4242

4343
DATA_MARKER = "COMPILER_SOURCES = "

src/java/io/bazel/rulesscala/scalac/reporter/BUILD

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ java_library(
2727
between_3_0_and_3_3 = glob(["scala_3/*.java"]) + [
2828
"since_3_before_3_3/CompilerCompat.java",
2929
],
30-
since_3_3 = glob(["scala_3/*.java"]) + [
31-
"since_3_3/CompilerCompat.java",
30+
between_3_3_and_3_7_2 = glob(["scala_3/*.java"]) + [
31+
"since_3_3_before_3_7_2/CompilerCompat.java",
32+
],
33+
since_3_7_2 = glob(["scala_3/*.java"]) + [
34+
"since_3_7_2/CompilerCompat.java",
3235
],
3336
) + ["//src/java/io/bazel/rulesscala/scalac/deps_tracking_reporter"],
3437
visibility = ["//visibility:public"],

0 commit comments

Comments
 (0)