Misleading 'unable to determine source type' error when packing from inside the snap/ directory
Metadata
Current evaluation
Misleading 'unable to determine source type' error when running snapcraft from inside the snap/ directory; path resolution is relative to CWD, not snapcraft.yaml location.
Suggested action: keep open
Reason: Valid, triaged bug with a clear reproducer and explicit description of expected behavior. The root cause is in craft-parts' `get_source_type_from_uri()` which raises `InvalidSourceType` when `Path(source).is_dir()` returns False (path doesn't exist), rather than a clearer 'path not found' error. The fix requires changes in craft-parts to check path existence before raising this error, or in snapcraft to provide better context. Related to #5721 which has the same error message from a different cause.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b |
Impact:
40
Quick Win:
22
Complexity:
30
Confidence:
80
Actionability:
80
|
keep open | Misleading 'unable to determine source type' error when running snapcraft from inside the snap/ directory; path resolution is relative to CWD, not snapcraft.yaml location. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Related To:
snapcraft#5721
(confidence 90%)
Same misleading error message but caused by a different issue (path mismatch for ROS 2 extensions).
Related issues
No related issues found above the similarity threshold.