missing " git://" in the source crashes the snapcraft
Metadata
Current evaluation
Fixed in Snapcraft 0.5/master: a bare GitHub source no longer crashes and now reports "local source is not a directory" through pull-step handling (PR #448).
Resolution: closed resolved
Reason: The reporter confirmed that Snapcraft 0.5 from master stopped the crash, and maintainer ~elopio verified that the new error message was clean and useful. Commit da1411df0 (PR #448, "Detect dirty pull step") matches the pull-step error handling that resolved it.
Evaluated by: mr-cal-bot
No scores available.
Issue body
I have a something like in the following:
parts:
cam:
plugin: go
source: github.com/liu-xiao-guo/webcamserv
It will crashes the snapcraft. The correct one should be:
source: git://github.com/liu-xiao-guo/webcamserv
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed in Snapcraft 0.5/master: a bare GitHub source no longer crashes and now reports "local source is not a directory" through pull-step handling (PR #448). | |
| stealth/space-bunny-alpha | — | closed resolved | Resolved in Snapcraft 0.5: an omitted git:// prefix now produces a clear "local source is not a directory" error instead of crashing. | |
| stealth/space-bunny-alpha | — | closed resolved | The crash was already resolved by merged PR #97 (7e6dc4b74), whose safer Go-plugin source parsing shipped in Snapcraft 0.5; the reporter confirmed the crash disappeared. | |
| stealth/space-bunny-alpha | — | closed stale | Closed without resolution after about 11 years of inactivity; no linked fix was provided. The reported workaround was to specify an explicit git:// source URL. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The snapcraft crash from missing git:// source prefixes was abandoned. Modern snapcraft versions enforce explicit protocol specification or handle defaults gracefully. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed after the crash was resolved by enforcing or validating the git:// prefix in source URLs, preventing malformed configuration errors. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcraft#448
(confidence 85%)
Commit da1411df0 added dirty pull-step detection, matching the clean failure reported after updating to 0.5.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1515132 Snapcraft crashes after defining a local source for a golang project | snapcraft (launchpad) | closed | Snapcraft's Go plugin crashed on local source paths because it assumed a URI. Fixed by ubuntu-core/snapcraft#97 (commit f15caeeb1) and confirmed working in 0.5. | |
| #1828548 Git source pull crashes if git not installed | snapcraft (launchpad) | closed | Resolved by bundling Git with Snapcraft, removing the need for a system Git executable; the issue was closed after a maintainer confirmed the bundle. | |
| #1817907 building part with git source-commit not found in master fails | snapcraft (launchpad) | closed | Fixed in snapcore/snapcraft#2968 (commit 3941e7918): Snapcraft now fetches a specified source-commit before checkout, including commits outside the default branch. | |
| #1979529 local git repositories cannot be cloned | snapcraft (launchpad) | closed | Local Git sources became cloneable in Snapcraft 7.1.1; the fix was merged via snapcraft#3861 in commit 4481326d6. | |
| #1614520 parser fails when getting git sources that have merge conflicts | snapcraft (launchpad) | closed | Fixed by snapcore/snapcraft#1052, merged as commit d22880fdc, making Git pulls more resilient to history changes and merge conflicts. | |
| #1600428 Setting source: .. causes pull to fail | snapcraft (launchpad) | closed | Fixed by snapcore/snapcraft#725, adding support for snapcraft.yaml in a subdirectory and preventing recursive source copying. |