generated from bazel-contrib/rules-template
-
-
Notifications
You must be signed in to change notification settings - Fork 75
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
The build_test macro in aspect_rules_ts calls the _build_test rule with a select involving @bazel_tools//src/conditions:host_windows
. Bazel 8.3.0 warns about this:
target '<your-target-here>' depends on deprecated target '@@bazel_tools//src/conditions:host_windows_x64_constraint': No longer used by Bazel and will be removed in the future. Migrate to toolchains or define your own version of this setting.
It appears that this code in aspect_rules_ts is forked from bazel_skylib. Note that release 1.8.0 of bazel_skylib corrects this issue.
Version
Development (host) and target OS/architectures: Ubuntu 24.04 / amd64
Output of bazel --version
: bazel 8.3.1
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
or MODULE.bazel
file: 3.5.0
Language(s) and/or frameworks involved:
How to reproduce
Use ts_project() in conjunction with Bazel 8.3.1. It creates a build_test() target and this leads to the warning.
Any other information?
Though we are currently using rules_ts 3.5.0, I checked the code in your main branch and it still uses @bazel_tools//src/conditions:host_windows
.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working