Skip to content

Upgrade stale git and curl apt pins in the Dockerfiles - #2995

Merged
MarcusSorealheis merged 2 commits into
TraceMachina:mainfrom
MarcusSorealheis:bugfix/git-apt-pin
Oct 21, 2026
Merged

MarcusSorealheis merged 2 commits into
TraceMachina:mainfrom
MarcusSorealheis:bugfix/git-apt-pin

Conversation

@MarcusSorealheis

@MarcusSorealheis MarcusSorealheis commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

What and why

Ubuntu published git 1:2.43.0-1ubuntu7.4 as a noble security update on 2026-10-19 and dropped 7.3 from the archive. The Dockerfiles pin 7.3, so apt-get install now fails with E: Version '1:2.43.0-1ubuntu7.3' for 'git' was not found. That breaks the integration-tests job on main (run 39588697651 at 76e17f5) and on every open PR. This bumps the pin to 7.4.

The same pin is in the toolchain-buck2 and toolchain-drake Dockerfiles, so they get the same bump, as #2544 did for curl. CI builds only deployment-examples/docker-compose/Dockerfile; the toolchain images are built by hand with their scripts.

A second commit fixes the same problem for curl. The toolchain-buck2 and toolchain-nativelink Dockerfiles still pin curl 8.5.0-2ubuntu10.11, which is also gone from the archive. #2942 moved the docker-compose image to 10.16 but left these two behind, so they now pin 10.16 as well.

How was this verified?

  • Launchpad's published-sources API for noble lists git 1:2.43.0-1ubuntu7.4 in Security and Updates, and 1:2.43.0-1ubuntu7 in Release. No 7.3 is published.
  • I downloaded the noble, noble-updates and noble-security main package indexes for amd64 (archive.ubuntu.com) and arm64 (ports.ubuntu.com). Both architectures list git 1:2.43.0-1ubuntu7.4 and neither lists 7.3. Both architectures also list curl 8.5.0-2ubuntu10.16, and neither lists 10.11. Every other pin in the four changed Dockerfiles is still present on both architectures: gcc and g++ 4:13.2.0-7ubuntu1, python3 3.12.3-0ubuntu2.1 and ca-certificates 20240203.
  • Pre-commit, including hadolint, passed on all four changed Dockerfiles.

I did not build the images locally because Docker was not running on my machine. The integration-tests job on this PR builds the docker-compose image and is the end-to-end check.

Risk

Low. git 7.4 and curl 10.16 are the same upstream releases (git 2.43.0, curl 8.5.0) with Ubuntu's security patches applied. They are the versions a fresh apt-get install already gets on noble.

CI builds none of the three toolchain images, so the curl change and two of the git changes have no CI coverage. They rest on the package-index check above.

AI assistance

Claude Code traced the failure to the stale pin, checked the published versions against Launchpad and the Ubuntu package indexes, made both changes, ran pre-commit and drafted this description, at Marcus Eagan's request.

🤖 Generated with Claude Code

Ubuntu replaced git 1:2.43.0-1ubuntu7.3 with a 7.4 security update and
dropped 7.3 from the noble archive, so the pinned install fails with
"Version '1:2.43.0-1ubuntu7.3' for 'git' was not found".

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nativelink Ready Ready Preview Oct 21, 2026 12:23pm UTC
nativelink-aidm Ready Ready Preview Oct 21, 2026 12:23pm UTC

Request Review

amankrx
amankrx previously approved these changes Oct 21, 2026
The docker-compose image moved to 10.16 in TraceMachina#2942, but the buck2 and
nativelink toolchain images still pin 10.11, which is no longer in the
noble archive.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@MarcusSorealheis MarcusSorealheis changed the title Upgrade git to 1:2.43.0-1ubuntu7.4 Upgrade stale git and curl apt pins in the Dockerfiles Oct 21, 2026
@MarcusSorealheis
MarcusSorealheis merged commit e1c6ed2 into TraceMachina:main Oct 21, 2026
31 checks passed
MarcusSorealheis added a commit to MarcusSorealheis/nativelink that referenced this pull request Oct 21, 2026
Add TraceMachina#2995 after merging main, and skip the release branch's own
changelog commits, which the generic "Add" rule filed under Features.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

This branch was successfully deployed

2 active deployments
Preview – nativelink — 513882da Deployed Oct 21, 2026 by vercel[bot]
Preview – nativelink-aidm — 513882da Deployed Oct 21, 2026 by vercel[bot]
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.

4 participants