Skip to content

Commit

Permalink
chore: bump to bazel-lib 2.7.1 (dev dep) (#3744)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan committed Apr 22, 2024
1 parent 2f7adef commit 245a464
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 40 deletions.
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module(
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")

Expand Down
12 changes: 7 additions & 5 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

workspace(
name = "rules_nodejs",
)
workspace(name = "rules_nodejs")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

Expand Down Expand Up @@ -59,13 +57,17 @@ http_archive(
)

#
# Dependencies to run stardoc & generating documentation
# Dependencies & toolchains needed for unit tests & generating documentation
#

load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")
load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "register_copy_directory_toolchains", "register_copy_to_directory_toolchains")

aspect_bazel_lib_dependencies()

register_copy_directory_toolchains()

register_copy_to_directory_toolchains()

# Needed for starlark unit testing
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

Expand Down
16 changes: 4 additions & 12 deletions e2e/nodejs_host/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
"bzlmod dependencies"

module(
name = "rules_nodejs_smoke_test",
version = "0.0.0",
compatibility_level = 1,
)

bazel_dep(name = "rules_nodejs", version = "0.0.0", dev_dependency = True)
bazel_dep(name = "bazel_skylib", version = "1.4.1", dev_dependency = True)
bazel_dep(name = "aspect_bazel_lib", version = "1.30.2", dev_dependency = True)

local_path_override(
module_name = "rules_nodejs",
path = "../..",
)

node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
bazel_dep(name = "bazel_skylib", version = "1.4.1", dev_dependency = True)
bazel_dep(name = "aspect_bazel_lib", version = "2.7.1", dev_dependency = True)

node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node", dev_dependency = True)

# Note, this gets the default version of Node.js from
# https://github.com/bazelbuild/rules_nodejs/blob/5.8.0/nodejs/repositories.bzl#L11
Expand Down
2 changes: 0 additions & 2 deletions e2e/nodejs_host/WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
workspace(name = "e2e_nodejs_host")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
Expand Down
18 changes: 5 additions & 13 deletions e2e/smoke/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
"bzlmod dependencies"

module(
name = "rules_nodejs_smoke_test",
version = "0.0.0",
compatibility_level = 1,
)

bazel_dep(name = "rules_nodejs", version = "0.0.0", dev_dependency = True)
bazel_dep(name = "bazel_skylib", version = "1.4.1", dev_dependency = True)
bazel_dep(name = "aspect_bazel_lib", version = "1.30.2", dev_dependency = True)
bazel_dep(name = "platforms", version = "0.0.5", dev_dependency = True)

local_path_override(
module_name = "rules_nodejs",
path = "../..",
)

node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
bazel_dep(name = "bazel_skylib", version = "1.4.1", dev_dependency = True)
bazel_dep(name = "aspect_bazel_lib", version = "2.7.1", dev_dependency = True)
bazel_dep(name = "platforms", version = "0.0.5", dev_dependency = True)

node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node", dev_dependency = True)

node.toolchain(node_version = "16.5.0")
node.toolchain(
Expand Down
8 changes: 3 additions & 5 deletions e2e/smoke/WORKSPACE.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
workspace(name = "e2e_core")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

local_repository(
Expand All @@ -9,9 +7,9 @@ local_repository(

http_archive(
name = "aspect_bazel_lib",
sha256 = "97fa63d95cc9af006c4c7b2123ddd2a91fb8d273012f17648e6423bae2c69470",
strip_prefix = "bazel-lib-1.30.2",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v1.30.2/bazel-lib-v1.30.2.tar.gz",
sha256 = "b554eb7942a5ab44c90077df6a0c76fc67c5874c9446a007e9ba68be82bd4796",
strip_prefix = "bazel-lib-2.7.1",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.1/bazel-lib-v2.7.1.tar.gz",
)

load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")
Expand Down
6 changes: 3 additions & 3 deletions repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def rules_nodejs_dev_dependencies():

http_archive(
name = "aspect_bazel_lib",
sha256 = "97fa63d95cc9af006c4c7b2123ddd2a91fb8d273012f17648e6423bae2c69470",
strip_prefix = "bazel-lib-1.30.2",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v1.30.2/bazel-lib-v1.30.2.tar.gz",
sha256 = "b554eb7942a5ab44c90077df6a0c76fc67c5874c9446a007e9ba68be82bd4796",
strip_prefix = "bazel-lib-2.7.1",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.1/bazel-lib-v2.7.1.tar.gz",
)

0 comments on commit 245a464

Please sign in to comment.