git package missing from build VM images
Metadata
Current evaluation
Snapcraft began automatically adding git to build-packages for version: git, fixing builds on VMs without git; merged in snapcore/snapcraft#2403 as a5719521c.
Resolution: closed resolved
Reason: Commit a5719521c implements the requested project-loader change and closes the gap identified in the discussion. It was merged through snapcore/snapcraft#2403.
Evaluated by: mr-cal-bot
No scores available.
Issue body
https://sentry.io/canonical-ao/snapcraft/issues/757489565
Running `snapcraft --debug` and `apt install git` fixes the issue.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Snapcraft began automatically adding git to build-packages for version: git, fixing builds on VMs without git; merged in snapcore/snapcraft#2403 as a5719521c. | |
| stealth/space-bunny-alpha | — | closed resolved | Git is now added to build-packages when version: git is used, fixing builds on minimal VM images. Merged in PR #2403 as commit a5719521c. | |
| stealth/space-bunny-alpha | — | closed resolved | Git was added to the 18.10 build VM images, resolving the failure that snapcraft --debug and a manual apt install git had worked around. | |
| stealth/space-bunny-alpha | — | closed resolved | Git-version projects now automatically include git as a build package through merged PR #2403 (a5719521c), fixing missing-Git build failures on 18.10. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed as resolved. The missing git package was added to the 18.10 build VM images, addressing the snapcraft error and removing the need for manual installation. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed. The missing git package in 18.10 build VM images was worked around by manually installing it via apt. No upstream fix was implemented. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcore/snapcraft#2403
(confidence 100%)
Merged commit a5719521c adds git to build-packages when version is set to git.
-
Related To:
snapcore/snapcraft#2406
(confidence 70%)
Follow-up PR linked from the issue discussion after the resolving change.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1720202 the snapcore/snapcraft image doesn't have git installed | snapcraft (launchpad) | closed | Git was added to the Snapcraft build Dockerfile by merged PR snapcore/snapcraft#1575 (commit 8910ec250), enabling version: git. | |
| #4944 Install `git` inside core24 build environments | snapcraft | closed | Git was bundled for core24 build environments by merged PR #5149 (commit c7d11ac65), making it available as craft.git on Snapcraft's build PATH. | |
| #1663605 Local build fails due to missing build-dependency on git | snapcraft (launchpad) | closed | Fixed by PR snapcore/snapcraft#1137 (commit 8b3cb387d), adding git as a Debian build dependency so Git source tests run in sbuild. | |
| #1137 Build-depend on git | snapcraft | merged | Merged in canonical/snapcraft#1137 (commit 8b3cb387d), adding git as a direct build dependency so Git source tests can invoke git. |