feat(snap): add git as craft.git to snapcraft
Metadata
Current evaluation
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.
Suggested action: —
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 |
|---|---|---|---|---|
| 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. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged the addition of a git binary exposed as craft.git for use by craft libraries, resolving 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. Added git as craft.git to the rockcraft snap package to enable git-based operations for craft libraries. Approved by two reviewers, the change updates four files with 72 additions. | |
| #149 sources: add the git source handler (CRAFT-588) | craft-parts | merged | Successfully merged a pull request adding a git source handler to specify git repositories as a part source. Code and tests were ported from snapcraft with initialization and write methods removed. Approved and passed CI checks. | |
| #925 feat: use "craft.git" for git where possible | craft-parts | merged | Merged a feature prioritizing craft.git over system git when available, with a fallback to git. Approved by two reviewers, this resolves issue #900 with 93 additions and 11 deletions across four files. | |
| #1260 meta: version from git support. | snapcraft | merged | Merged. Added version: git support to snapcraft, allowing version determination via git tags. Fixed git repository error messages, suppressed unhelpful warnings when no tags exist, and improved error handling. Approved by reviewers and merged after addressing feedback. | |
| #4393 fix: add part in snapcraft.yaml to build libgit2 | snapcraft | merged | Merged PR #4393 resolves #4379 by adding a snapcraft.yaml part to compile libgit2 from source and disable wheel downloads. Approved by two reviewers, passed CI, and merged into main. | |
| #2403 project_loader: add git to build-packages for version: git | snapcraft | merged | Merged into master. Adds git to build-packages when version is set to git, resolving SNAPCRAFT-7P and Launchpad bug #1802899. Approved, passed CI, and verified by a maintainer and reviewer. |