Skip to content

Create proper source tarballs in CI/on releases #2216

Closed
@hasufell

Description

@hasufell

Implementing https://gitlab.haskell.org/haskell/ghcup-hs/-/merge_requests/180 I need proper source tarballs.

The default ones are:

  1. autogenerated and would depend on github not messing with the tarball layout (they did so at least twice) for the hash to be stable
  2. depend on the tag (yeah, if you force push, the hash changes too)
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions