Skip to content

//pkg:verify_archive.bzl verify_archive_test provided but unusable #731

Closed
@chickenandpork

Description

@chickenandpork

I was very thankful when I noticed that a standard-ish way to validate the contents of a tar file was available:

"""Rule to test that the content of an archive has particular properties.

"""Rule to test that the content of an archive has particular properties.

This is available for integration testing, when people want to verify that all
the files they expect are in an archive. Or possibly, they want to verify that
some files do not appear.

The execution time is O(# expected patterns * size of archive).
"""

Unfortunately, I don't think it's usable (it's possible that external re-use of this test capability might not be the intended audience)

  1. template at
    default = Label("//pkg:verify_archive_test_main.py.tpl"),
    is //pkg:... not @rules_pkg//pkg:... so it cannot be reached in a dependent project trying to use verify_archive_test
  2. template at item 1 is not included in the rules_pkg-0.9.1 archive
  3. test lib at
    "//pkg:verify_archive_test_lib",
    is dev = [ "//pkg:... not @rules_pkg//pkg:... with similar barrier to point 1.

Tentatively resolved

Points 1 and 3 are easily resolved; for point 2, I'm not certain how the missing file should be added to the delivered tar file in the release.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions