From b694f91ba3edff23179a281361a3fad98d60b8f4 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Wed, 6 Nov 2024 20:26:42 +0000 Subject: [PATCH] Publish bazel-contrib/rules_nodejs@v6.3.2 --- modules/rules_nodejs/6.3.2/MODULE.bazel | 51 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 +++++ modules/rules_nodejs/6.3.2/presubmit.yml | 14 +++++ modules/rules_nodejs/6.3.2/source.json | 9 ++++ modules/rules_nodejs/metadata.json | 3 +- 5 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 modules/rules_nodejs/6.3.2/MODULE.bazel create mode 100644 modules/rules_nodejs/6.3.2/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_nodejs/6.3.2/presubmit.yml create mode 100644 modules/rules_nodejs/6.3.2/source.json diff --git a/modules/rules_nodejs/6.3.2/MODULE.bazel b/modules/rules_nodejs/6.3.2/MODULE.bazel new file mode 100644 index 00000000000..81b7fe4c734 --- /dev/null +++ b/modules/rules_nodejs/6.3.2/MODULE.bazel @@ -0,0 +1,51 @@ +"bzlmod declaration for bazel-contrib/rules_nodejs" + +module( + name = "rules_nodejs", + version = "6.3.2", + compatibility_level = 1, +) + +# Lower-bounds (minimum) versions for direct runtime dependencies +bazel_dep(name = "bazel_skylib", version = "1.4.1") +bazel_dep(name = "platforms", version = "0.0.5") + +node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") + +# Note, this gets the default version of Node.js from +# https://github.com/bazel-contrib/rules_nodejs/blob/main/nodejs/repositories.bzl#L11 +node.toolchain() +use_repo(node, "nodejs_toolchains") + +# Toolchain registration under bzlmod should match the order of WORKSPACE registration +# which is the order specified in the PLATFORMS dict https://github.com/bazel-contrib/rules_nodejs/blob/4c373209b058d46f2a5f9ab9f8abf11b161ae459/nodejs/private/nodejs_toolchains_repo.bzl#L20. +# For each platform, `:_toolchain_target` should be registered before `:_toolchain`, +# https://github.com/bazel-contrib/rules_nodejs/blob/4c373209b058d46f2a5f9ab9f8abf11b161ae459/nodejs/repositories.bzl#L461/. +# See https://github.com/bazelbuild/bazel/issues/19645 and https://github.com/bazel-contrib/rules_nodejs/pull/3750 for more context. +register_toolchains("@nodejs_toolchains//:linux_amd64_toolchain_target") + +register_toolchains("@nodejs_toolchains//:linux_amd64_toolchain") + +register_toolchains("@nodejs_toolchains//:linux_arm64_toolchain_target") + +register_toolchains("@nodejs_toolchains//:linux_arm64_toolchain") + +register_toolchains("@nodejs_toolchains//:linux_s390x_toolchain_target") + +register_toolchains("@nodejs_toolchains//:linux_s390x_toolchain") + +register_toolchains("@nodejs_toolchains//:linux_ppc64le_toolchain_target") + +register_toolchains("@nodejs_toolchains//:linux_ppc64le_toolchain") + +register_toolchains("@nodejs_toolchains//:darwin_amd64_toolchain_target") + +register_toolchains("@nodejs_toolchains//:darwin_amd64_toolchain") + +register_toolchains("@nodejs_toolchains//:darwin_arm64_toolchain_target") + +register_toolchains("@nodejs_toolchains//:darwin_arm64_toolchain") + +register_toolchains("@nodejs_toolchains//:windows_amd64_toolchain_target") + +register_toolchains("@nodejs_toolchains//:windows_amd64_toolchain") diff --git a/modules/rules_nodejs/6.3.2/patches/module_dot_bazel_version.patch b/modules/rules_nodejs/6.3.2/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..c2b747e14b7 --- /dev/null +++ b/modules/rules_nodejs/6.3.2/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "bzlmod declaration for bazel-contrib/rules_nodejs" + + module( + name = "rules_nodejs", +- version = "0.0.0", ++ version = "6.3.2", + compatibility_level = 1, + ) + + # Lower-bounds (minimum) versions for direct runtime dependencies diff --git a/modules/rules_nodejs/6.3.2/presubmit.yml b/modules/rules_nodejs/6.3.2/presubmit.yml new file mode 100644 index 00000000000..3a43aa4775f --- /dev/null +++ b/modules/rules_nodejs/6.3.2/presubmit.yml @@ -0,0 +1,14 @@ +bcr_test_module: + module_path: "e2e/smoke" + matrix: + bazel: ["7.x"] + platform: ["debian10", "macos", "ubuntu2004", "windows"] + tasks: + run_tests: + name: "Run test module" + bazel: ${{ bazel }} + platform: ${{ platform }} + test_targets: + - "//..." + test_flags: + - "--test_tag_filters=-skip-on-bazelci-windows" diff --git a/modules/rules_nodejs/6.3.2/source.json b/modules/rules_nodejs/6.3.2/source.json new file mode 100644 index 00000000000..816e0401c86 --- /dev/null +++ b/modules/rules_nodejs/6.3.2/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-FYYZcj8di9U13WuTUh9OA88kpeEHEm0FaF+9lUDMrRA=", + "strip_prefix": "rules_nodejs-6.3.2", + "url": "https://github.com/bazel-contrib/rules_nodejs/releases/download/v6.3.2/rules_nodejs-v6.3.2.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-3R1xRgJElixW+OEIHu2crHObQ9lzaFYy78fhV+JfgdM=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_nodejs/metadata.json b/modules/rules_nodejs/metadata.json index 9edcdc82df0..c3e07309e20 100644 --- a/modules/rules_nodejs/metadata.json +++ b/modules/rules_nodejs/metadata.json @@ -32,7 +32,8 @@ "6.1.3", "6.2.0", "6.3.0", - "6.3.1" + "6.3.1", + "6.3.2" ], "yanked_versions": {} }