Skip to content

TarArchive decompress fails when tar has broken relative symlinks #484

@davellas

Description

@davellas

When using the TarArchive decompress function, if the input Tar file has broken symlinks inside, the decompression fails with error
failed to evaluate symlink

However sometimes these broken symlinks don't really have negative impacts.
One example of such tar archives are the releases of code-server https://github.com/coder/code-server/releases
Manually untarring these files work, but they are not possible to be untarred with packit.

Expected Behavior

It is possible to use the TarArchive packit functionality to untar files containing broken symlinks

Current Behavior

Untarring files with broken symlinks always result in error

Possible Solution

It would be good enough to have an option/flag to specify in order to ignore broken symlinks instead of just throwing an error.

Steps to Reproduce

  1. download one of the code-server releases linked above
  2. try to deliver/decompress it with packit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions