Skip to content

🐛 fix(docker): pin buildout bootstrap.py after branch deletion - #12

Merged
ewdurbin merged 1 commit into
pypa:mainfrom
gaborbernat:fix/buildout-pin
Sep 23, 2026
Merged

ewdurbin merged 1 commit into
pypa:mainfrom
gaborbernat:fix/buildout-pin

Conversation

@gaborbernat

Copy link
Copy Markdown
Contributor

bootstrap.pypa.io serves virtualenv 21.7.4, although pypa/get-virtualenv holds 21.10.0. 🐛 The monitor workflow has not produced a version commit since 10 August: buildout/buildout deleted its bootstrap-release branch, the commits API returns 422 for it, and jq --exit-status fails 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.py from 30365f4, the last commit bootstrap-release pointed to and the one .versions/buildout-version.json recorded. 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 remaining curl calls gain --fail --show-error, so a broken source prints the reason in the log.

ADD writes a downloaded file with mode 0600, which the nobody user nginx runs as cannot read, so the fetch stage sets 0644 the way the clone did.

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
ewdurbin merged commit 879ffb7 into pypa:main Sep 23, 2026
1 check passed
@gaborbernat
gaborbernat deleted the fix/buildout-pin branch September 23, 2026 00:48
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.

2 participants