-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHubRelease Unpack Archive Cannot Unpack Archives with Symlinks #395
Comments
I agree that |
Symlinks are complicated in the general sense because they can move you around OS to places that you do not intend to. What happens if you are downloading a symlink that points to a file that has not been downloaded? Or would it point to a random directory on your laptop? Another thing that I am not sure will work, even if we implemented the ability to get symlinks travel powers, is that you are limiting the assets that are retrieved assetNames:
- ollama-linux-amd64.tgz So vendir will only download that one particular file. Is there any particular reason for you to download a symlink instead of the real tgz you want to unpack? |
It seems like a valid use case to me. What I'd do is to implement support of symlinks in archives, but with checks that symlinks aren't pointing outside of the working directory. |
@Zebradil exactly the problem (it's the symlinks inside the archive). The one point I'd make is that I'd recommend hewing close to how |
Sorry, I completely misread what you said. |
My opinions are very weak since my current problem is solved by your more conservative case. |
Cool, Given I have the following vendir configuration 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 When I execute Given I have a github release that contains a tar archive I will mark this issue as accepted and ready to be implemented. @nebhale how much would you say this is currently impacting you? I'm trying to understand how high this should be in the priority queue. Also open to review PR if anyone in the community is interested in fixing this issue. |
I have a work around so not highest priority, but we'd like to see it in the next couple of months. |
What steps did you take:
Attempt to sync the following
vendir.yml
What happened:
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
):vendir version 0.41.0
/etc/os-release
): DarwinVote 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.
The text was updated successfully, but these errors were encountered: