Skip to content

Commit

Permalink
fix: don't register toolchains in MODULE.bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan committed May 1, 2024
1 parent 777bd04 commit 32c6fed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
6 changes: 0 additions & 6 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ module(
compatibility_level = 1,
)

cypress = use_extension("//cypress:extensions.bzl", "cypress")
cypress.toolchain(cypress_version = "12.3.0")
use_repo(cypress, "cypress_toolchains")

register_toolchains("@cypress_toolchains//:all")

bazel_dep(name = "aspect_bazel_lib", version = "1.42.3")
bazel_dep(name = "aspect_rules_js", version = "1.41.2")
bazel_dep(name = "bazel_skylib", version = "1.4.1")
Expand Down
7 changes: 0 additions & 7 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ nodejs_register_toolchains(
node_version = DEFAULT_NODE_VERSION,
)

load("@aspect_rules_cypress//cypress:repositories.bzl", "cypress_register_toolchains")

cypress_register_toolchains(
name = "cypress",
cypress_version = "12.3.0",
)

# For running our own unit tests
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

Expand Down
6 changes: 6 additions & 0 deletions e2e/workspace/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ local_path_override(
path = "../..",
)

cypress = use_extension("@aspect_rules_cypress//cypress:extensions.bzl", "cypress")
cypress.toolchain(cypress_version = "12.12.0")
use_repo(cypress, "cypress_toolchains")

register_toolchains("@cypress_toolchains//:all")

bazel_dep(name = "aspect_rules_js", version = "1.41.2", dev_dependency = True)
bazel_dep(name = "bazel_features", version = "1.9.0", dev_dependency = True)

Expand Down

0 comments on commit 32c6fed

Please sign in to comment.