Skip to content

GitHubRelease Unpack Archive Cannot Unpack Archives with Symlinks #395

Open
@nebhale

Description

What steps did you take:
Attempt to sync the following vendir.yml

apiVersion: vendir.k14s.io/v1alpha1
kind: Config
directories:
- path: vendor
  contents:
  - path: .
    githubRelease:
      slug: ollama/ollama
      latest: true
      disableAutoChecksumValidation: true
      assetNames:
      - ollama-linux-amd64.tgz
      unpackArchive:
        path: ollama-linux-amd64.tgz

What happened:

➜  vendir sync                                                                                 
Fetching: vendor + . (github release ollama/ollama@latest)

vendir: Error: Syncing directory 'vendor':
  Syncing directory '.' with github release contents:
    Expected known archive type (zip, tgz, tar)

What did you expect:
I expected the tarball to be expanded to the vendor directory.

Anything else you would like to add:
It's almost certainly because this code doesn't know what a symlink is. The same problem probably exists in Zip files.

Environment:

  • vendir version (execute vendir --version): vendir version 0.41.0
  • OS (e.g. from /etc/os-release): Darwin

Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

Metadata

Labels

bugThis issue describes a defect or unexpected behaviorcarvel-acceptedThis issue should be considered for future work and that the triage process has been completedgood first issueAn issue that will be a good candidate for a new contributorpriority/important-soonMust be staffed and worked on currently or soon.

Type

No type

Projects

  • Status

    Prioritized Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions