Closed
Description
Implementing https://gitlab.haskell.org/haskell/ghcup-hs/-/merge_requests/180 I need proper source tarballs.
The default ones are:
- autogenerated and would depend on github not messing with the tarball layout (they did so at least twice) for the hash to be stable
- depend on the tag (yeah, if you force push, the hash changes too)
- have bad tarball names like
1.4.0.tar.gz
, causing trouble for ghcup
Something like:
git archive --prefix=haskell-language-server-${version}/ --format=tar.gz -o haskell-language-server-${version}.tar.gz HEAD
in CI should do the trick.