-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
move rules_pkg out of Bazel #8857
Comments
This flag turns off the rules //tools/build_defs/pkg:{pkg_deb, pkg_rpm, pkg_tar}. The code has moved to https://github.com/bazelbuild/rules_pkg/tree/master/pkg. Users should migrate to the new versions. RELNOTES: Adds flag --//tools/build_defs/pkg:incompatible_no_build_defs_pkg. This flag turns off the rules //tools/build_defs/pkg:{pkg_deb, pkg_rpm, pkg_tar}. Part of #8857 Closes #8858. PiperOrigin-RevId: 258574031
See #8857 Thoughts: - The change to discard_graph_edges_test.sh is ridiculous. The test is flaky in CI and super brittle. - The fact that some integration tests rely on a WORKSPACE that matches that used to build bazel is odd. I should be able to use the built version of Bazel with my own workspace, with rules_cc and rules_pkg at a different revision level. We should have an integration test framework which establishes an entirely different WORKSPACE and runs a variety of tests within that, rather than trying to build a special purpose one for each test. RELNOTES: None PiperOrigin-RevId: 260074256
Will the migration tooling be available to do this change? |
…o load("@rules_pkg//:...", ...) See: bazelbuild/bazel#8857
I could do special purpose tooling with a small python script. OR.. I could wait for a migration tool that can update WORKSPACE IFF any of the BUILD or bzl files were transformed. The other thing we can do is not bother flipping now and get people to migrate by only adding new features to the new repo. |
No one should be using @bazel_tools/rules_pkg any more. They should use github.com/bazelbuild/rules_pkg. |
Status update No timeline for pkg_tar removal. |
*** Reason for rollback *** While this worked at the time. Upgrading rules_pkg to current versions requires adding rules_python to the test WORKSPACE. This makes the complexity worse. I'm falling back to a different solution where bazel builds in a mini-tar that is sufficient for these tests but is not tempting for users to use. *** Original change description *** Switch Android rules runtime deps builder to use rules_pkg for pkg_tar. See #8857 Thoughts: - The change to discard_graph_edges_test.sh is ridiculous. The test is flaky in CI and super brittle. - The fact that some integration tests rely on a WORKSPACE that matches that used to build bazel is odd. I should be able to use the built version of Bazel with my own workspace, with rules_cc and rules_pkg at a different revision level. We should have an integr... *** RELNOTES: None PiperOrigin-RevId: 358382248
#8857 Fixes #11217 (#11217) RELNOTES: pkg_deb is no longer part of @bazel_tools//build_defs/pkg:pkg.bzl. Use https://github.com/bazelbuild/rules_pkg/tree/main/pkg instead PiperOrigin-RevId: 360464481
Closing this out.
|
No one should be using this any more. See: bazelbuild#8857
For
|
Aren't they the same thing? pkg:pkg.bzl and pkg:tar.bzl |
No. They are different files. pkg.bzl is going to disappear shortly and you must use pkg/tar.bzl. |
These rules have been extracted from the Bazel sources and are now available at bazelbuild/rules_pkg. See the following issue for more details: bazelbuild/bazel#8857 Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
hese rules have been extracted from the Bazel sources and are now available at bazelbuild/rules_pkg. See the following issue for more details: bazelbuild/bazel#8857 Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
These rules have been extracted from the Bazel sources and are now available at bazelbuild/rules_pkg. See the following issue for more details: bazelbuild/bazel#8857 Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
These rules have been extracted from the Bazel sources and are now available at bazelbuild/rules_pkg. See the following issue for more details: bazelbuild/bazel#8857 Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
These rules have been extracted from the Bazel sources and are now available at bazelbuild/rules_pkg. See the following issue for more details: bazelbuild/bazel#8857 Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
These rules have been extracted from the Bazel sources and are now available at bazelbuild/rules_pkg. See the following issue for more details: bazelbuild/bazel#8857 Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
//tools/build_defs/pkg:{pkg_deb, pkg_rpm, pkg_tar} are being pulled out of Bazel core and moved to https://github.com/bazelbuild/rules_pkg/tree/master/pkg. Users should migrate to the new versions.
Migration:
Add WORKSPACE stanza as specified in a rule_pkg release
https://github.com/bazelbuild/rules_pkg/releases
Replace instances of
with
One line solution (for some users)
Expected timeline:
The text was updated successfully, but these errors were encountered: