Support .git extension detection
Metadata
Current evaluation
Implemented automatic .git extension detection to set source_type as git, enabling http/https git repository distribution without explicit snapcraft.yaml configuration. Merged after adding Launchpad bug reference and rebasing to master.
Suggested action: —
No scores available.
Issue body
On github for instance, the https URL for a repo ends with .git:
https://github.com/…/….git.
Detecting this pattern as source_type = 'git' enables us to support http{,s}
git repo distribution without having to mention it explicitely in
snapcraft.yaml.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Implemented automatic .git extension detection to set source_type as git, enabling http/https git repository distribution without explicit snapcraft.yaml configuration. Merged after adding Launchpad bug reference and rebasing to master. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged after adding a Launchpad bug reference and resolving test failures from infrastructure hash mismatches. The change enables automatic git source detection for URLs ending in .git, removing the need for explicit snapcraft.yaml configuration. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged to master. Auto-detects .git URLs to set source_type to git, removing explicit snapcraft.yaml config. Contributor added requested Launchpad bug reference and synced with master. Approved and merged after passing tests. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #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. | |
| #408 sources: add 'git+ssh:' for 'git' source-type | craft-parts | merged | Merged. Added git+ssh: support to the git source-type, resolving cloning failures for Launchpad repositories. Approved by a reviewer, passed CI, and includes a new test case. |