Migrate away from @bazel_tools//src/conditions:host_windows#574
Migrate away from @bazel_tools//src/conditions:host_windows#574comius merged 1 commit intobazelbuild:mainfrom
@bazel_tools//src/conditions:host_windows#574Conversation
The condition has been deprecated at HEAD. None of its usages in skylib were correct as they should all either match on the target or the exec platform, not the host.
|
@katre @meteorcloudy Could you review this for the platform and Windows perspectives? |
meteorcloudy
left a comment
There was a problem hiding this comment.
Thank you, approve from Windows perspective!
katre
left a comment
There was a problem hiding this comment.
This is great! @gregestren was looking into this (to get rid of --host_cpu), so thanks for tackling it.
|
Friendly ping, would be great to have this merged and released |
|
@meteorcloudy @comius Could we get a new skylib release with this fix? https://bazelbuild.slack.com/archives/CA31HN1T3/p1750769722571109 |
|
@fmeum Are you familiar with https://github.com/bazel-contrib/rules-template/blob/main/.github/workflows/release.yaml? Can you help us adopt this workflow for bazel_skylib? |
Newer versions address a warning about a deprecated feature: bazelbuild/bazel-skylib#574
Newer versions address a warning about a deprecated target: bazelbuild/bazel-skylib#574
This upgrade of `bazel_skylib` from version 1.7.1 to 1.9.0 eliminates a few deprecation warnings when executing Bazel commands: > 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. Migrate to toolchains > or define your own version of this setting. These warnings originated from `bazel_skylib` 1.7.1's use of the deprecated `@bazel_tools//src/conditions:host_windows` constraint in `copy_file` and `diff_test rules`. Sinc version 1.8.0, `bazel_skylib` migrated away from this deprecated constraint (see bazelbuild/bazel-skylib#574).
This upgrade of `bazel_skylib` from version 1.7.1 to 1.9.0 eliminates a few deprecation warnings when executing Bazel commands: > 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. Migrate to toolchains > or define your own version of this setting. These warnings originated from `bazel_skylib` 1.7.1's use of the deprecated `@bazel_tools//src/conditions:host_windows` constraint in `copy_file` and `diff_test rules`. Since version 1.8.0, `bazel_skylib` migrated away from this deprecated constraint (see bazelbuild/bazel-skylib#574).
This upgrade of `bazel_skylib` from version 1.7.1 to 1.9.0 eliminates a few deprecation warnings when executing Bazel commands: > 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. Migrate to toolchains > or define your own version of this setting. These warnings originated from `bazel_skylib` 1.7.1's use of the deprecated `@bazel_tools//src/conditions:host_windows` constraint in `copy_file` and `diff_test rules`. Since version 1.8.0, `bazel_skylib` migrated away from this deprecated constraint (see bazelbuild/bazel-skylib#574).
This upgrade of `bazel_skylib` from version 1.7.1 to 1.9.0 eliminates a few deprecation warnings when executing Bazel commands: > 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. Migrate to toolchains > or define your own version of this setting. These warnings originated from `bazel_skylib` 1.7.1's use of the deprecated `@bazel_tools//src/conditions:host_windows` constraint in `copy_file` and `diff_test rules`. Since version 1.8.0, `bazel_skylib` migrated away from this deprecated constraint (see bazelbuild/bazel-skylib#574).
The condition has been deprecated at HEAD. None of its usages in skylib were correct as they should all either match on the target or the exec platform, not the host.