← Back to issue list

snapcraft pack error obtuse on snapd errors

View original Github issue

Metadata

Project
snapcraft
Number
#4870
Type
issue
State
closed
Author
sergiusens
Labels
Created
Updated
Closed

Current evaluation

Closed as a duplicate of issue #4548. The snapcraft pack error handling regression affecting core22 and core24 is superseded by the referenced tracking issue.

Suggested action:

No scores available.

Issue body

### Bug Description The messages are being hidden from snap pack, this seems to be a core24 regression ### To Reproduce pack a snap on core24 with a command to a path that does not exist ### Environment core24 ### snapcraft.yaml ```shell name: apostrophe base: core24 adopt-info: apostrophe grade: devel confinement: devmode apps: apostrophe: command: bin/apostrophe extensions: [gnome] build-packages: - pandoc parts: apostrophe: source: https://gitlab.gnome.org/World/apostrophe.git plugin: meson meson-parameters: - --prefix=/usr parse-info: - usr/share/metainfo/org.gnome.gitlab.somas.Apostrophe.metainfo.xml after: - revealjs revealjs: source: https://github.com/hakimel/reveal.js/archive/refs/tags/5.1.0.tar.gz plugin: dump organize: "*": usr/share/apostrophe/libs/reveal.js/ ``` ### Relevant log output ```shell Command '['snap', 'pack', '--filename', 'apostrophe_3.0_amd64.snap', '--compression', 'xz', PosixPath('/root/prime'), PosixPath('/root/project')]' returned non-zero exit status 1. snapcraft-apostrophe-on-amd64-for-amd64-21764214 ../project# cat ../prime/meta/snap.yaml ``` ### Additional context Manual snap pack on the prime dir ``` 2024/06/23 12:32:30.262115 container.go:393: in snap "apostrophe": path "bin/apostrophe" does not exist 2024/06/23 12:32:30.262192 container.go:393: in snap "apostrophe": path "bin" does not exist error: cannot pack "../prime": snap is unusable due to missing files ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed as a duplicate of issue #4548. The snapcraft pack error handling regression affecting core22 and core24 is superseded by the referenced tracking issue.
qwen/qwen3.6-35b-a3b Closed as a duplicate of issue #4548. The snapcraft pack command obscures snapd errors regarding missing paths on core22 and core24. Tracking moved to the referenced issue.
qwen/qwen3.6-35b-a3b Closed as a duplicate of issue #4548. The obtuse snapd error handling during snapcraft pack affects core22 and core24, with the underlying fix tracked in the referenced issue.
qwen3.6-35b-a3b-mtp-q6 Closed as a duplicate of issue #4548. The snapcraft pack error handling issue is tracked there and also affects core22.
qwen3.6-35b-a3b-mtp-q6 Closed as a duplicate of issue #4548. Snapcraft pack obscured snapd errors on core22 and core24. The underlying defect remains tracked in the referenced duplicate.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1978844 snapcraft try not available for core22-based snap snapcraft (launchpad) closed Closed without resolution or comments. The snapcraft try command remains unavailable for core22-based snaps, with attempts failing or falling back to legacy implementations.
73%
#1988858 snapcraft trying to install extra package causing conflict snapcraft (launchpad) closed Closed without a tracked fix or comments. The author reported a build dependency conflict caused by snapcraft pulling extra packages. The issue appears abandoned or resolved by the author.
73%
#4880 snapcraft indiscriminately removes *.snap files snapcraft closed Closed as a snap pack issue rather than a snapcraft bug. Developers confirmed the stripping occurs upstream, redirecting the fix to snapd.
73%
#1947968 snapcraft missing 22.04 branch snapcraft (launchpad) closed Closed without resolution. The missing ubuntu-22.04 branch for the snapcraft snap caused dpkg installation failures. Likely abandoned or resolved upstream.
72%
#1939713 snapcraft init create base: core18 snap snapcraft (launchpad) closed Closed without direct resolution, likely abandoned due to inactivity. Subsequent Snapcraft releases updated the init default to core20 and core22, effectively resolving the reported behavior.
72%
#1816 snapcraft update won't fetch from `SNAPCRAFT_PARTS_URI` snapcraft closed Closed without resolution or comments. Likely superseded by the linked Launchpad bug report. No fixes or code changes were applied.
72%
#5316 Snapd error `cannot set "core.experimental.snapd-snap"` when repacking a core20 snap snapcraft closed Fixed in Snapcraft 8.12. The failure resulted from snapd 2.68.4 removing the core.experimental.snapd-snap flag. Snapcraft now conditionally applies the flag based on the snapd version, resolving the build error for core20 and core18 environments.
72%
#1996511 snapcraft try with multipass provider crashes snapcraft (launchpad) closed Closed without resolution. The multipass provider crashed on core22 due to missing base mappings in the legacy codebase. Superseded by newer snapcraft releases that added core22 support.
72%
#6336 Snapcraft 9: snapcraftctl errors in core22 snaps snapcraft open Regression in snapcraft 9: core22 snaps using snapcraftctl in override-build fail validation. Maintainer confirmed as a regression.
72%
#2019931 snapcraft is ignoring the "assumes" section snapcraft (launchpad) closed Bug report indicating snapcraft omits the assumes section from snap.yaml when using core22 base. Closed after two days with zero comments, indicating the report was abandoned without resolution.
71%