fetch icon indicating copy to clipboard operation
fetch copied to clipboard

How to download Source code (tar.gz) asset of release

Open atomlab opened this issue 5 years ago • 3 comments

Sorry, I not understand how to download release source code (tar.gz)?

# fetch --repo="https://github.com/hashicorp/go-version" --tag="v1.2.0"  --release-asset="v1.2.0.tar.gz" /tmp
ERROR: Could not find assets matching v1.2.0.tar.gz in release v1.2.0
Screenshot 2020-02-04 at 20 09 38

atomlab avatar Feb 04 '20 17:02 atomlab

This is not currently supported, but probably good to add. We don't have a use case internally for this so we are unlikely to add this ourselves, but would welcome a PR from the community!

yorinasub17 avatar Feb 04 '20 18:02 yorinasub17

Use case: The .zip does not retain file modes. While .tar.gz does. If you're getting a "release" that is just a bunch of scripts, it won't work without going through and chmod'ing a bunch of stuff to have executable scripts.

bhundven avatar Nov 01 '23 20:11 bhundven

I uploaded the wrong file to a release and now it won't let me change the source code zip and .tar.gz.

jolespin avatar Jan 30 '24 21:01 jolespin