Skip to content

Commit 9d1c47e

Browse files
authored
build: update sass bazel rules and fix yarn repository Bazel warning (#24816)
Updates to the latest version of the Sass Bazel rules. We landed a fix upstream, allowing us to provide a vendored Yarn script, instead of needing a separate download of Yarn (with a warning polluting the Bazel output)
1 parent 3bb1747 commit 9d1c47e

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

WORKSPACE

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ http_archive(
1515
# Add sass rules
1616
http_archive(
1717
name = "io_bazel_rules_sass",
18-
sha256 = "bfb89ca97a4ad452ca5f623dfde23d2a5f3a848a97478d715881b69b4767d3bb",
19-
strip_prefix = "rules_sass-1.49.4",
18+
sha256 = "4b6153ae6c454c5bd44f3e47e5430f8a634d4affb983a237d21ca6199e13991c",
19+
strip_prefix = "rules_sass-1.50.1",
2020
urls = [
21-
"https://github.com/bazelbuild/rules_sass/archive/1.49.4.zip",
21+
"https://github.com/bazelbuild/rules_sass/archive/1.50.1.zip",
2222
],
2323
)
2424

@@ -103,7 +103,9 @@ web_test_repositories()
103103
# Setup the Sass rule repositories.
104104
load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
105105

106-
sass_repositories()
106+
sass_repositories(
107+
yarn_script = "//:.yarn/releases/yarn-1.22.17.cjs",
108+
)
107109

108110
# Setup repositories for browsers provided by the shared dev-infra package.
109111
load(

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
"requirejs": "^2.3.6",
203203
"rollup": "^2.66.1",
204204
"rollup-plugin-sourcemaps": "^0.6.3",
205-
"sass": "^1.49.4",
205+
"sass": "^1.50.1",
206206
"selenium-webdriver": "^3.6.0",
207207
"semver": "^7.3.5",
208208
"send": "^0.17.2",

yarn.lock

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12708,7 +12708,7 @@ sass-lookup@^3.0.0:
1270812708
dependencies:
1270912709
commander "^2.16.0"
1271012710

12711-
[email protected], sass@^1.49.4:
12711+
1271212712
version "1.50.0"
1271312713
resolved "https://registry.yarnpkg.com/sass/-/sass-1.50.0.tgz#3e407e2ebc53b12f1e35ce45efb226ea6063c7c8"
1271412714
integrity sha512-cLsD6MEZ5URXHStxApajEh7gW189kkjn4Rc8DQweMyF+o5HF5nfEz8QYLMlPsTOD88DknatTmBWkOcw5/LnJLQ==
@@ -12717,6 +12717,15 @@ [email protected], sass@^1.49.4:
1271712717
immutable "^4.0.0"
1271812718
source-map-js ">=0.6.2 <2.0.0"
1271912719

12720+
sass@^1.50.1:
12721+
version "1.50.1"
12722+
resolved "https://registry.yarnpkg.com/sass/-/sass-1.50.1.tgz#e9b078a1748863013c4712d2466ce8ca4e4ed292"
12723+
integrity sha512-noTnY41KnlW2A9P8sdwESpDmo+KBNkukI1i8+hOK3footBUcohNHtdOJbckp46XO95nuvcHDDZ+4tmOnpK3hjw==
12724+
dependencies:
12725+
chokidar ">=3.0.0 <4.0.0"
12726+
immutable "^4.0.0"
12727+
source-map-js ">=0.6.2 <2.0.0"
12728+
1272012729
saucelabs@^1.5.0:
1272112730
version "1.5.0"
1272212731
resolved "https://registry.yarnpkg.com/saucelabs/-/saucelabs-1.5.0.tgz#9405a73c360d449b232839919a86c396d379fd9d"

0 commit comments

Comments
 (0)