← Back to issue list

'snapcraft upload' says 'Invalid package filename.'

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1541353
Type
issue
State
closed
Author
~dholbach
Labels
—
Created
Updated
Closed

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

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.
72%
#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.
70%