Merge verify_archive_test_lib with verify_archive_test_main.py.tpl (#705)

* Use Label constructor for verify_archive_test macro

One of the `deps` within the `verify_archive_test` macro
depends on a label, which would be incorrectly evaluated
in a caller's BUILD file to be a non-external package.

Add a Label() call to the label to ensure it is evaluated in the
context of rules_pkg. Also add a test to ensure this can be
correctly used from another workspace.

* Merge verify_archive_test_lib into test template

Instead of exporting verify_archive_test_lib as a
public library embed it into the template for the
test itself.
6 files changed
tree: 3758d8bdf3f8b49207f1fdc05fde1aa5c847559b
  1. .bazelci/
  2. deb_packages/
  3. distro/
  4. doc_build/
  5. docs/
  6. examples/
  7. pkg/
  8. tests/
  9. toolchains/
  10. .bazelignore
  11. .gitignore
  12. AUTHORS
  13. BUILD
  14. CHANGELOG.md
  15. CODEOWNERS
  16. CONTRIBUTING.md
  17. CONTRIBUTORS
  18. deps.bzl
  19. developers.md
  20. LICENSE
  21. MODULE.bazel
  22. patching.md
  23. README.md
  24. version.bzl
  25. WORKSPACE
  26. WORKSPACE.bzlmod
README.md

Bazel package building

Bazel rules for building tar, zip, deb, and rpm for packages.

For the latest version, see Releases (with WORKSPACE setup) / Documentation

Use rules-pkg-discuss@googlegroups.com for discussion.

CI: Build status

Basic rules

Package building rules

  • pkg - Rules for building packages of various types.
  • examples - Cookbook examples for using the rules.

As of Bazel 4.x, Bazel uses this rule set for packaging its distribution. Bazel still contains a limited version of pkg_tar but its feature set is frozen. Any new capabilities will be added here.

For developers

We hold an engineering status meeting on the first Monday of every month at 10am USA East coast time. Add to calendar / meeting notes