Skip to content

archive: support dot-slash-prefixed paths for Tar-formats #19530

Open
@tgolsson

Description

@tgolsson

Is your feature request related to a problem? Please describe.

Some tools (e.g. the Deploy Pages GH Action) prefer and/or require paths that are explicitly relative, with a leading ./ on every path. Pants currently generates archives without this prefix. While not overly complex to manually fix it after packaging, it might be useful to allow this as an option.

Describe the solution you'd like

The ability to specify a path_prefix for tar-like formats.

Describe alternatives you've considered

Manually fixing it seems the most consistent. I was not able to get the right results with relocated_files.

Additional context

  • See above issue link for a clear issue caused by the current format.
  • I can contribute the changes necessary here if this seems like a good change.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions