[all-commits] [llvm/llvm-project] 919f05: [clang][python] Make .git_archival.txt determinist...
Adrian Kuegel via All-commits
all-commits at lists.llvm.org
Tue Sep 15 13:15:37 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 919f058fe8d4edfe9806b1f2a2cf553f93f60182
https://github.com/llvm/llvm-project/commit/919f058fe8d4edfe9806b1f2a2cf553f93f60182
Author: Adrian Kuegel <akuegel at google.com>
Date: 2026-09-15 (Tue, 15 Sep 2026)
Changed paths:
M clang/bindings/python/.git_archival.txt
Log Message:
-----------
[clang][python] Make .git_archival.txt deterministic. (#223362)
Without an explicit `abbrev` option, `$Format:%(describe:...)` uses
Git's dynamic object abbreviation length (`find_unique_abbrev`). In a
large, rapidly growing repository like `llvm-project`, new commits can
potentially collide with existing short-SHA prefixes, causing GitHub's
`git archive` servers to emit longer short-SHAs over time for historical
commits. This mutates `clang/bindings/python/.git_archival.txt` inside
GitHub's dynamically generated `.tar.gz`/`.zip` source archives,
breaking downstream builds (such as OpenXLA/Bazel) that verify archive
SHA-256 checksums.
Specify `abbrev=40` so `describe-name` always uses the full 40-character
commit hash. `hatch-vcs` slices the parsed node ID to 10 characters when
formatting versions, so the resulting Python package version is
unchanged.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list