'snapcraft upload' says 'Invalid package filename.'
Metadata
Current evaluation
Fixed by merged canonical/snapcraft PR #298: upload reads the snap name from snapcraft.yaml instead of parsing the built package.
Resolution: closed resolved
Reason: PR #298 was merged as e96c7b08e, with implementation commit 3c43312af. It changed upload to obtain the name from snapcraft.yaml, resolving the invalid-package-filename error.
Evaluated by: mr-cal-bot
No scores available.
Issue body
$ grep name snapcraft.yaml
name: moon-buggy
$ snapcraft upload
Invalid package filename.
$
The question is: how do I get it right? What do I need to? Can we give the user a better idea of what's required?
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged canonical/snapcraft PR #298: upload reads the snap name from snapcraft.yaml instead of parsing the built package. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR canonical/snapcraft#298, which changed upload to read the snap name from snapcraft.yaml instead of parsing it from the built package. | |
| stealth/space-bunny-alpha | — | closed stale | Closed without resolution; the request for clearer guidance on 'Invalid package filename' received no documented fix or workaround. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The user reported an unclear error during snapcraft upload and requested better guidance, but no fix or workaround was documented. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The request for improved error messaging on invalid snap filenames was not implemented. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Abandoned. The report requested clearer error messaging for invalid package filenames during snapcraft upload. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/snapcraft#298
(confidence 100%)
Merged fix for LP #1541353; merge commit e96c7b08e.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #298 Upload: Obtain name from YAML instead of snap. | snapcraft | merged | Merged PR #298 as e96c7b08e, fixing LP #1541353 by reading the snap name from snapcraft.yaml instead of parsing the built snap package. | |
| #1547672 invalid package name in "build-packages" message is not very helpful | snapcraft (launchpad) | closed | Fixed by merged ubuntu-core/snapcraft PR #355 (f4b75f95a), which updated build-packages errors to name the invalid package. |