Skip to content

Commit

Permalink
fix: add copy_file_to_bin bazel-lib toolchain (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan authored May 9, 2024
1 parent 0b426bf commit f2316bc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module(
)

# Lower-bounds (minimum) versions for direct runtime dependencies
bazel_dep(name = "aspect_bazel_lib", version = "1.30.2")
bazel_dep(name = "aspect_bazel_lib", version = "1.38.0")
bazel_dep(name = "aspect_rules_js", version = "1.29.2")
bazel_dep(name = "bazel_skylib", version = "1.4.1")

Expand Down
2 changes: 1 addition & 1 deletion e2e/smoke/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"Bazel dependencies"

bazel_dep(name = "aspect_bazel_lib", version = "1.30.2", dev_dependency = True)
bazel_dep(name = "aspect_bazel_lib", version = "1.38.0", dev_dependency = True)
bazel_dep(name = "aspect_rules_terser", version = "0.0.0", dev_dependency = True)
bazel_dep(name = "aspect_rules_js", version = "1.23.2", dev_dependency = True)

Expand Down
1 change: 1 addition & 0 deletions terser/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ load("//terser/private:terser.bzl", terser_lib = "lib")
_terser = rule(
implementation = terser_lib.implementation,
attrs = terser_lib.attrs,
toolchains = terser_lib.toolchains,
)

def terser(
Expand Down
6 changes: 3 additions & 3 deletions terser/dependencies.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ def rules_terser_dependencies():

http_archive(
name = "aspect_bazel_lib",
sha256 = "ee95bbc80f9ca219b93a8cc49fa19a2d4aa8649ddc9024f46abcdd33935753ca",
strip_prefix = "bazel-lib-1.29.2",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v1.29.2/bazel-lib-v1.29.2.tar.gz",
sha256 = "b848cd8e93be7f18c3deda6d2f3ade92a657d3585e119953bc50dc75fef535c2",
strip_prefix = "bazel-lib-1.38.0",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v1.38.0/bazel-lib-v1.38.0.tar.gz",
)

http_archive(
Expand Down
3 changes: 2 additions & 1 deletion terser/private/terser.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"terser"

load("@aspect_bazel_lib//lib:copy_to_bin.bzl", "copy_files_to_bin_actions")
load("@aspect_bazel_lib//lib:copy_to_bin.bzl", "COPY_FILE_TO_BIN_TOOLCHAINS", "copy_files_to_bin_actions")
load("@aspect_rules_js//js:libs.bzl", "js_lib_helpers")
load("@aspect_rules_js//js:providers.bzl", "js_info")

Expand Down Expand Up @@ -151,4 +151,5 @@ def _impl(ctx):
lib = struct(
attrs = _ATTRS,
implementation = _impl,
toolchains = COPY_FILE_TO_BIN_TOOLCHAINS,
)

0 comments on commit f2316bc

Please sign in to comment.