Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: backport 2.x features for interoperability #657

Merged
merged 1 commit into from Nov 16, 2023

Conversation

kormide
Copy link
Member

@kormide kormide commented Nov 15, 2023

For downstream rulesets to use bazel-lib 1.x and 2.x, some features need to be added back to 1.x for a new release. These include:

  • copy action toolchain declarations
  • new host and toolchains module extensions

Type of change

  • New feature or functionality (change which adds functionality

Test plan

Manual testing against against rules_js and rules_ts overriden to point to this PR.

@kormide kormide force-pushed the copy-action-toolchains branch 4 times, most recently from 5517d50 to 3e5d2ca Compare November 16, 2023 00:34
@kormide kormide changed the title feat: expose toolchains used for copy actions feat: backport 2.x features for interoperability Nov 16, 2023
@kormide kormide marked this pull request as ready for review November 16, 2023 08:18
Comment on lines -16 to +23
ext = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "ext")
use_repo(ext, "copy_directory_toolchains", "copy_to_directory_toolchains", "coreutils_toolchains", "expand_template_toolchains", "jq_toolchains", "yq_toolchains")
bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains")
bazel_lib_toolchains.copy_directory()
bazel_lib_toolchains.copy_to_directory()
bazel_lib_toolchains.jq()
bazel_lib_toolchains.yq()
bazel_lib_toolchains.coreutils()
bazel_lib_toolchains.expand_template()
use_repo(bazel_lib_toolchains, "copy_directory_toolchains", "copy_to_directory_toolchains", "coreutils_toolchains", "expand_template_toolchains", "jq_toolchains", "yq_toolchains")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a breaking change. The new extension registers the same toochains. We just no longer use the old extension to do it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay thanks for explaining

@alexeagle alexeagle merged commit 78ed16a into aspect-build:1.x Nov 16, 2023
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants