Skip to content

Commit

Permalink
perf: use rules_js Bazel 6 optimized fs patches if using Bazel 6 and …
Browse files Browse the repository at this point in the history
…experimental_allow_unresolved_symlinks is on (#37)
  • Loading branch information
gregmagolan authored Apr 12, 2023
1 parent 50ef90e commit 0a7ed57
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions cypress/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ def cypress_test(name, cypress = "//:node_modules/cypress", **kwargs):
"@aspect_rules_js//js/private:enable_runfiles": True,
"//conditions:default": False,
}),
unresolved_symlinks_enabled = select({
"@aspect_rules_js//js/private:experimental_allow_unresolved_symlinks": True,
"//conditions:default": False,
}),
**kwargs
)

Expand Down Expand Up @@ -86,6 +90,10 @@ def cypress_module_test(name, runner, cypress = "//:node_modules/cypress", **kwa
"@aspect_rules_js//js/private:enable_runfiles": True,
"//conditions:default": False,
}),
unresolved_symlinks_enabled = select({
"@aspect_rules_js//js/private:experimental_allow_unresolved_symlinks": True,
"//conditions:default": False,
}),
entry_point = runner,
chdir = native.package_name(),
data = kwargs.pop("data", []) + [
Expand Down
6 changes: 3 additions & 3 deletions cypress/dependencies.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def rules_cypress_dependencies():

http_archive(
name = "aspect_rules_js",
sha256 = "2a1e5d4400e2b49f6d36785aa894412670a0babfe7054e733b6a8f23c1b41e26",
strip_prefix = "rules_js-1.23.1",
url = "https://github.com/aspect-build/rules_js/releases/download/v1.23.1/rules_js-v1.23.1.tar.gz",
sha256 = "aea8d12bdc4b40127e57fb3da5b61cbb17e969e7786471a71cbff0808c600bcb",
strip_prefix = "rules_js-1.24.1",
url = "https://github.com/aspect-build/rules_js/releases/download/v1.24.1/rules_js-v1.24.1.tar.gz",
)

http_archive(
Expand Down

0 comments on commit 0a7ed57

Please sign in to comment.