Skip to content

Commit

Permalink
refactor: drop support for Bazel 5 (aspect-build#1589)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan authored and jbedard committed May 14, 2024
1 parent a5a904c commit 89a666d
Show file tree
Hide file tree
Showing 57 changed files with 677 additions and 4,900 deletions.
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ e2e/**/*-docs.md
examples/**/*-docs.md
js/private/coverage/coverage.js
js/private/node-patches/fs.js
js/private/node-patches_legacy/fs.js
min/
npm/private/test/vendored/
js/private/worker/worker.js
Expand Down
7 changes: 2 additions & 5 deletions docs/js_binary.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions e2e/gyp_no_install_script/snapshots/bzlmod/repositories.bzl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions e2e/gyp_no_install_script/snapshots/wksp/repositories.bzl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 0 additions & 24 deletions e2e/gyp_no_install_script/snapshots/wksp/segfault-handler_defs.bzl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions e2e/npm_translate_lock/snapshots/bzlmod/repositories.bzl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions e2e/npm_translate_lock/snapshots/wksp/repositories.bzl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions e2e/npm_translate_lock_empty/snapshots/wksp/repositories.bzl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions js/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
"Public API"

load("@aspect_bazel_lib//lib:utils.bzl", "is_bazel_7_or_greater")
load("@bazel_features//:features.bzl", "bazel_features")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

exports_files(
glob(["*.bzl"]),
visibility = ["//docs:__pkg__"],
)

config_setting(
name = "allow_unresolved_symlinks",
values = {bazel_features.flags.allow_unresolved_symlinks: "true"},
visibility = ["//visibility:public"],
)

config_setting(
name = "enable_runfiles",
values = {"enable_runfiles": "true"},
Expand Down
8 changes: 0 additions & 8 deletions js/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ def js_binary(**kwargs):
Label("@aspect_rules_js//js:enable_runfiles"): True,
"//conditions:default": False,
}),
unresolved_symlinks_enabled = select({
Label("@aspect_rules_js//js:allow_unresolved_symlinks"): True,
"//conditions:default": False,
}),
**kwargs
)

Expand All @@ -45,10 +41,6 @@ def js_test(**kwargs):
Label("@aspect_rules_js//js:enable_runfiles"): True,
"//conditions:default": False,
}),
unresolved_symlinks_enabled = select({
Label("@aspect_rules_js//js:allow_unresolved_symlinks"): True,
"//conditions:default": False,
}),
**kwargs
)

Expand Down
Loading

0 comments on commit 89a666d

Please sign in to comment.