gruntwork-io / fetch

Download files, folders, and release assets from a specific git commit, branch, or tag of public and private GitHub repos.
https://www.gruntwork.io/
MIT License
589 stars 90 forks source link

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

Open atomlab opened 4 years ago

atomlab commented 4 years ago

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
yorinasub17 commented 4 years ago

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!

bhundven commented 10 months ago

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.

jolespin commented 7 months ago

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