bazel-skylib icon indicating copy to clipboard operation
bazel-skylib copied to clipboard

Bazel-8.3.0 flags _copy_rule depending on @bazel_tools//src/conditions:host_windows_x64_constraint

Open chickenandpork opened this issue 6 months ago • 3 comments

WARNING: .../BUILD.bazel:9:11: in _write_xfile rule @@<redacted>: target '@@<redacted>' 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.
WARNING: <redacted>/BUILD.bazel:205:11: in _copy_file rule <redacted> 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.

I just saw this and wanted to ensure it was recorded. I haven't created a repro since it should be apparent in any example that upgrades to bazel-8.3.0

chickenandpork avatar Jun 25 '25 22:06 chickenandpork

This will be fixed by the next bazel-skylib release: https://github.com/bazelbuild/bazel-skylib/pull/574

CC @Wyverald

fmeum avatar Jun 26 '25 05:06 fmeum

Thanks @fmeum @Wyverald :)

chickenandpork avatar Jun 26 '25 06:06 chickenandpork

We're seeing the same warning in rules_wasm_component issue #32: https://github.com/pulseengine/rules_wasm_component/issues/32

The warning appears when using build_test from bazel_skylib with Bazel 8.3.0:

WARNING: target depends on deprecated target '@@bazel_tools//src/conditions:host_windows_x64_constraint': No longer used by Bazel and will be removed in the future.

For now we've added a comment referencing this issue. Looking forward to the fix!

avrabe avatar Aug 20 '25 04:08 avrabe