Skip to content

Commit

Permalink
fix: remove unused bad symlink in nodejs_repo_host_os_alias
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan committed Jun 6, 2024
1 parent 08dde37 commit f9c14f3
Showing 1 changed file with 21 additions and 33 deletions.
54 changes: 21 additions & 33 deletions e2e/nodejs_host/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,66 +1,54 @@
# Dummy test target that imports various targets from the
# "@nodejs" repository. If a target of the repository is
# misconfigured, Bazel will complain about missing input files.
sh_test(
name = "test_default",
srcs = ["test.sh"],
data = [
"@nodejs//:node",
"@nodejs//:node_bin",
"@nodejs//:node_files",
"@nodejs//:npm",
"@nodejs//:npm_bin",
"@nodejs//:npm_files",
],
)

# Additional targets to test the use of parallel node toolchains
[
sh_test(
name = "test_" + id,
name = "test_%s" % i,
srcs = ["test.sh"],
data = [
"@%s_host//:node" % id,
"@%s_host//:node_bin" % id,
"@%s_host//:node_files" % id,
"@%s_host//:npm" % id,
"@%s_host//:npm_bin" % id,
"@%s_host//:npm_files" % id,
"@%s_host//:npx_bin" % id,
"@%s//:node" % i,
"@%s//:node_bin" % i,
"@%s//:node_files" % i,
"@%s//:npm" % i,
"@%s//:npm_bin" % i,
"@%s//:npm_files" % i,
"@%s//:npx" % i,
"@%s//:npx_bin" % i,
],
)
for id in [
for i in [
"nodejs",
"node16",
"node16_nvmrc",
]
]

[
sh_test(
name = "test_node_version_%s_%s" % (bin, id),
name = "test_node_version_%s_%s" % (b, i),
srcs = ["version_test.sh"],
args = select({
"@bazel_tools//src/conditions:linux_x86_64": [
"%s_linux_amd64/bin" % id,
bin,
"%s_linux_amd64/bin" % i,
b,
],
"@bazel_tools//src/conditions:darwin": [
"%s_darwin_arm64/bin" % id,
bin,
"%s_darwin_arm64/bin" % i,
b,
],
"@bazel_tools//src/conditions:windows": [
"%s_windows_amd64/bin" % id,
bin,
"%s_windows_amd64/bin" % i,
b,
".cmd",
],
}),
data = [
"@%s_host//:%s" % (id, bin),
"@%s_host//:node" % id,
"@%s//:%s" % (i, b),
"@%s//:node" % i,
"@bazel_tools//tools/bash/runfiles",
],
)
for (id, bin) in [
for (i, b) in [
("node16", "npm"),
("node16", "npx"),
("node16_nvmrc", "npm"),
Expand Down

0 comments on commit f9c14f3

Please sign in to comment.