Skip to content

dist: stop publishing source.tar.gz - #407

Merged
sylvestre merged 2 commits into
mainfrom
dist-no-source-tarball
Nov 8, 2026
Merged

sylvestre merged 2 commits into
mainfrom
dist-no-source-tarball

Conversation

@pierre-warnier

Copy link
Copy Markdown
Collaborator

Fixes #405

Thanks @oech3 for spotting this.

Evidence. I downloaded both 0.6.0 tarballs, the release asset source.tar.gz and GitHub's archive/refs/tags/0.6.0.tar.gz, and extracted them. Only the top directory name differs (uu_shadow-0.6.0/ vs shadow-0.6.0/):

  • file lists, with the top directory stripped: identical (1095 entries)
  • diff -r of the two trees: no differences

Change.

  • source-tarball = false in dist-workspace.toml.
  • dist generate --mode ci with dist 0.34.0, run as CONTRIBUTING.md documents, leaves release.yml unchanged. The source tarball is driven by the plan manifest, not the workflow.
  • dist plan before/after: the only lines that go are source.tar.gz and [checksum] source.tar.gz.sha256. The JSON manifest diff is limited to those two artifacts. The gnu x86_64/aarch64 archives, the static musl archive and sha256.sum are unchanged.
  • Nothing tracked references source.tar.gz. tests/verify-release.sh checks only the three named archives, and no PKGBUILD or doc uses it.
  • CHANGELOG entry under Changed.

Reviews welcome. Without objection, this will be merged after 7 days.

dist builds it with git archive of the tag, so it carries the same
files and contents as the tarball GitHub already serves for the tag.

Fixes #405
Comment thread dist-workspace.toml Outdated
Comment on lines +19 to +21
# No source.tar.gz. dist builds it with `git archive` of the tag, which is
# what GitHub already serves as the release's "Source code" download, so it
# only duplicated that (issue #405).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# No source.tar.gz. dist builds it with `git archive` of the tag, which is
# what GitHub already serves as the release's "Source code" download, so it
# only duplicated that (issue #405).
# GitHub automatically generates tarball on the release page.

TLDR

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied in bd7bb48, thanks.

Co-authored-by: oech3 <79379754+oech3@users.noreply.github.com>
@sylvestre
sylvestre merged commit 28309d5 into main Nov 8, 2026
13 checks passed
@sylvestre

Copy link
Copy Markdown
Collaborator

Thanks for your PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release page's source.tar.gz is just a dupe of GitHub generated tarball

3 participants