Skip to content

Commit

Permalink
📦 Make Git archives reproducible
Browse files Browse the repository at this point in the history
Some time ago, it was discovered that Git archives having
`ref-names: $Format:%D$` in `.git_archival.txt` may change when
references existing in the repository change over time [[1]]. This
means that downloading an archive for a commit from an immutable URL
may start yielding slightly different results. This hurts the ability
of downstreams to source projects from Git archive URLs.

With that in mind, modern `setuptools-scm` advises against having this
entry in the `.git_archival.txt` template [[2]]. And this patch
implements said recommendation.

[1]: pypa/setuptools-scm#806
[2]: https://setuptools-scm.readthedocs.io/en/latest/usage/#git-archives
  • Loading branch information
webknjaz committed Aug 23, 2024
1 parent 31db9c7 commit 83440fe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion .git_archival.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node: $Format:%H$
node-date: $Format:%cI$
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
ref-names: $Format:%D$

0 comments on commit 83440fe

Please sign in to comment.