Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a non-numeric prefix before the unstable version to avoid getting…
… parsed and truncated as a number (#7400) ### Problem See #7399. The commit 0672383 experienced CI failures, because our current method of generating the "unstable" pants version to build wheels puts the hexadecimal sha as its own version component: if the sha happens to be completely numeric and begins with any zeroes, `packaging.version.Version()` will helpfully truncate it -- but our `release.sh` script wasn't aware of that. ### Solution - Add a non-numeric prefix before the sha to generate `PANTS_UNSTABLE_VERSION` in `release.sh` to avoid possible truncation. - The prefix chosen was `git`. ### Result Commit shas starting with zero and containing only numbers for the first 8 characters will no longer fail in CI.
- Loading branch information