← Back to issue list

sources: add the git source handler (CRAFT-588)

View original Github issue

Metadata

Project
craft-parts
Number
#149
Type
pull request
State
merged
Author
cmatsuoka
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action:

No scores available.

Issue body

The git source handler allows specifying git repositories as a part source. Code and tests ported from snapcraft, with repository initialization and write methods removed. Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com> - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b 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.
qwen3.6-35b-a3b-mtp-q6 Merged the git source handler implementation, enabling git repositories as part sources. Code and tests were ported from snapcraft, excluding repository initialization and write methods. Resolves CRAFT-588.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#5149 feat(snap): add git as craft.git to snapcraft snapcraft merged 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.
78%
#38 sources: add the local source handler craft-parts merged Merged the local source handler for pull and update operations on host filesystem sources. Ported from snapcraft, the change was approved by two reviewers, passed CI, and added 522 lines across three files.
77%
#61 sources: add snap source handler craft-parts merged Merged. Added a snap source handler to download and extract snap package files, ported from Snapcraft. Approved by three reviewers, passed CI, and added 314 lines across eight files.
75%
#1126 feat: source handler snap support craft-parts merged Added support for source types to specify required snaps for handling. Merged after approval by three reviewers and passing all CI checks. Changes span four files with 46 additions, resolving CRAFT-4561.
74%
#877 Add new "source-commit" field for VCS sources snapcraft merged Merged after introducing a source-commit field to snapcraft.yaml for VCS sources. Resolves bug 1632126, includes unit and integration tests for git, bzr, and mercurial, and received maintainer approval.
72%
#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.
71%
#1566153 Snapcraft should detect .git extension as source_type='git' snapcraft (launchpad) closed Resolved via PR #422. Snapcraft now automatically detects .git URLs as source_type=git, removing the need for explicit configuration in snapcraft.yaml.
70%