Repository navigation
🐛 fix(docker): pin buildout bootstrap.py after branch deletion - #12
Merged
Merged
Conversation
buildout/buildout deleted its bootstrap-release branch. The commits API returns 422 for it, so jq --exit-status fails the monitor step before any version file reaches a commit, and the Docker build cannot clone the branch. bootstrap.pypa.io has served virtualenv 21.7.4 since then. Fetch bootstrap.py from 30365f4, the last commit the branch pointed to. The file matches what bootstrap.pypa.io serves byte for byte, so users get the same script. A file pinned to one commit needs no monitoring, so the workflow drops buildout, and the other curl calls fail with a visible error. ADD writes the file as 0600, which nginx's nobody user cannot read, so the fetch stage sets 0644 the way the clone did.
ewdurbin
approved these changes
Sep 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bootstrap.pypa.io serves virtualenv 21.7.4, although
pypa/get-virtualenvholds 21.10.0. 🐛 The monitor workflow has not produced a version commit since 10 August:buildout/buildoutdeleted itsbootstrap-releasebranch, the commits API returns 422 for it, andjq --exit-statusfails the step before the version files reach a commit. The Docker build clones the same branch. A new image cannot build either.This fetches buildout's
bootstrap.pyfrom30365f4, the last commitbootstrap-releasepointed to and the one.versions/buildout-version.jsonrecorded. The file has not changed since 2015, and its SHA-256 (4b0a12e9…ae567) matches what bootstrap.pypa.io serves today, so users get the same bytes. A file pinned to one commit needs no monitoring, so the workflow drops the buildout line and its version file. The three remainingcurlcalls gain--fail --show-error, so a broken source prints the reason in the log.ADDwrites a downloaded file with mode0600, which thenobodyuser nginx runs as cannot read, so the fetch stage sets0644the way the clone did.