Skip to content

Commit

Permalink
Revert "CI: no local actions (#7166)"
Browse files Browse the repository at this point in the history
This reverts commit 8fe95f1.
  • Loading branch information
sluongng committed Aug 8, 2024
1 parent 63c2d0d commit 7114cf4
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 44 deletions.
7 changes: 0 additions & 7 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,6 @@ use_repo(
# Note that this is 'rules_nodejs-core'
# Keep in sync with build_bazel_rules_nodejs in WORKSPACE.bzlmod
bazel_dep(name = "rules_nodejs", version = "5.8.2")
single_version_override(
module_name = "rules_nodejs",
patch_strip = 1,
patches = [
"@@//buildpatches:build_bazel_rules_nodejs.patch",
],
)

node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
node.toolchain(
Expand Down
14 changes: 0 additions & 14 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -180,24 +180,10 @@ staticcheck()

http_archive(
name = "build_bazel_rules_nodejs",
patch_args = ["-p1"],
patches = [
"//buildpatches:build_bazel_rules_nodejs.patch",
],
sha256 = "94070eff79305be05b7699207fbac5d2608054dd53e6109f7d00d923919ff45a",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.8.2/rules_nodejs-5.8.2.tar.gz"],
)

http_archive(
name = "rules_nodejs",
patch_args = ["-p1"],
patches = [
"//buildpatches:build_bazel_rules_nodejs.patch",
],
sha256 = "764a3b3757bb8c3c6a02ba3344731a3d71e558220adcb0cf7e43c9bba2c37ba8",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.8.2/rules_nodejs-core-5.8.2.tar.gz"],
)

load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies")

build_bazel_rules_nodejs_dependencies()
Expand Down
4 changes: 0 additions & 4 deletions WORKSPACE.bzlmod
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ http_archive(
# Since there is no build_bazel_rules_nodejs in BCR, we still want to load it here.
http_archive(
name = "build_bazel_rules_nodejs",
patch_args = ["-p1"],
patches = [
"//buildpatches:build_bazel_rules_nodejs.patch",
],
sha256 = "94070eff79305be05b7699207fbac5d2608054dd53e6109f7d00d923919ff45a",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.8.2/rules_nodejs-5.8.2.tar.gz"],
)
Expand Down
19 changes: 0 additions & 19 deletions buildpatches/build_bazel_rules_nodejs.patch

This file was deleted.

1 change: 1 addition & 0 deletions rules/sha/index.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ def sha(name, srcs, **kwargs):
}
find $(SRCS) -type f | sort | xargs shasum | normalize_config_paths | shasum | awk '{ print $$1 }' > $@
""",
local = 1,
**kwargs
)
1 change: 1 addition & 0 deletions rules/typescript/index.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def ts_jasmine_node_test(name, srcs, deps = [], size = "small", **kwargs):
srcs = [":%s_commonjs.js" % name],
outs = [":%s_commonjs.test.js" % name],
cmd_bash = "cp $(SRCS) $@",
tags = ["local"],
)

jasmine_node_test(
Expand Down

0 comments on commit 7114cf4

Please sign in to comment.