fetch
fetch copied to clipboard
How to download Source code (tar.gz) asset of release
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

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!
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.
I uploaded the wrong file to a release and now it won't let me change the source code zip and .tar.gz.