Schema prevents user from specifying source-type local
Metadata
Current evaluation
Fixed by PR #1352 (commit 2610a8ac4), restoring support for explicitly specifying source-type: local.
Resolution: closed resolved
Reason: Maintainer kyrofa linked PR #1352 as the fix. Commit 2610a8ac4, titled "Allow source-type to specify local", addresses the schema regression.
Evaluated by: mr-cal-bot
No scores available.
Issue body
The recent change to the schema that added an enumeration of valid 'source-types' means that now you cannot specify source-type to be local.
The particular use case this allows is when you have a remote part with one of the currently valid source types e.g. git, and you want to fast iterate on the part without the requirement to check in to a repo (even one on your local file system). It was previously possible to override the source-type to local by putting any non-valid value in your local snapcraft.yaml source-type field whilst keeping all the other useful stuff like build-packages etc.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by PR #1352 (commit 2610a8ac4), restoring support for explicitly specifying source-type: local. | |
| stealth/space-bunny-alpha | — | closed resolved | Restored local as a valid source-type via merged PR #1352 (commit 2610a8ac4), fixing the schema regression. | |
| stealth/space-bunny-alpha | — | closed stale | Closed without a fix as stale; no resolving change was recorded, and the report saw no activity for 3,376 days. | |
| stealth/space-bunny-alpha | — | closed resolved | Restored local as a valid source-type via merged PR #1352 (commit 2610a8ac4), enabling local overrides of remote parts. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The schema enumeration blocking 'local' source-type was not addressed, leaving the request abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | The schema restriction blocking local source-type was closed without resolution. No fix or workaround was implemented, leaving the limitation in place. The issue remains abandoned after nine years with no maintainer engagement. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/snapcraft#1352
(confidence 100%)
The maintainer explicitly identified this PR as the fix; its commit is 2610a8ac4.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1352 Allow source-type to specify local | snapcraft | merged | Merged PR #1352 restored local as a valid source-type, allowing snapcraft.yaml overrides to switch remote parts to local sources; regression coverage accompanied the change. |