feat(snap): add git as craft.git to snapcraft
Metadata
Current evaluation
PR merged as commit c7d11ac65: adds a git binary as `craft.git` in $SNAP/libexec/snapcraft for Craft libraries needing a Git client (CRAFT-3547), with new spread tests.
Resolution: closed resolved
Reason: The PR was approved by two reviewers and merged into main as commit c7d11ac65 ("build(snap): add git as craft.git to snapcraft (#5149)"). snap/snapcraft.yaml now maps craft.git to libexec/snapcraft/craft.git and spread tests under tests/spread/_common/craftgit and tests/spread/core24/craftgit verify it is available during pull, build, stage and prime.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [ ] Have you followed the [guidelines for contributing](https://github.com/canonical/snapcraft/blob/main/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `tox run -m lint`?
- [ ] Have you successfully run `tox run -e test-py310`? (supported versions: `py39`, `py310`, `py311`, `py312`)
Adds a `git` binary as a `craft.git`, that'll be used by the `craft` libraries for the operation which require git client.
(CRAFT-3547)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | PR merged as commit c7d11ac65: adds a git binary as `craft.git` in $SNAP/libexec/snapcraft for Craft libraries needing a Git client (CRAFT-3547), with new spread tests. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in #5149 (c7d11ac65), adding git as craft.git so Craft libraries can perform operations requiring a Git client (CRAFT-3547). | |
| qwen/qwen3.6-35b-a3b | — | — | Merged addition of a git binary as craft.git to snapcraft. Approved by two reviewers, the 72-line change across four files enables craft libraries to use the git client, resolving CRAFT-3547. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged the addition of a git binary as craft.git to snapcraft, enabling craft libraries to utilize the git client for required operations. Resolves CRAFT-3547. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #756 feat(snap): add git as craft.git to rockcraft | rockcraft | merged | Merged PR canonical/rockcraft#756 added git to the rockcraft snap as craft.git, enabling Craft libraries to perform Git-based operations. | |
| #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. | |
| #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. | |
| #4393 fix: add part in snapcraft.yaml to build libgit2 | snapcraft | merged | Merged PR #4393 (commit 5fbaab144) added a snapcraft.yaml part to build libgit2 from source and block wheel downloads, fixing #4379. |