dump plugin with stage-packages fails
Metadata
Current evaluation
Resolved by merged snapcore/snapcraft PR #729, commit 26ae9a507: the dump plugin no longer removes the install directory, fixing stage-packages builds.
Resolution: closed resolved
Reason: The maintainer linked snapcore/snapcraft PR #729 as the fix. Repository history records commit 26ae9a507, "Dump plugin: Don't remove install directory," implementing the change that prevents the directory-removal failure.
Evaluated by: mr-cal-bot
No scores available.
Issue body
If you use the dump plugin in combination with stage packages, it fails with the following error:
[Errno 39] Directory not empty: '/tmp/test/parts/dummy-part/install'
To reproduce, snap the following yaml:
name: basic
version: 0.1
summary: Summary of the most simple snap
description: Description of the most simple snap
architectures: [all]
confinement: strict
parts:
dummy-part:
plugin: dump
source: .
stage-packages: [hello]
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Resolved by merged snapcore/snapcraft PR #729, commit 26ae9a507: the dump plugin no longer removes the install directory, fixing stage-packages builds. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR canonical/snapcraft#729 (commit 26ae9a507), preserving the dump plugin install directory so stage-packages merge without an ENOTEMPTY failure. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #729 (commit 26ae9a507): dump now preserves its install directory, allowing stage packages to be merged without a Directory not empty failure. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution, likely abandoned. The dump plugin failed when combined with stage-packages, raising a directory not empty error. No fix or workaround was documented. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. Combining the dump plugin with stage-packages triggered a directory-not-empty error during snap construction. No fix or follow-up was provided, indicating the report was abandoned. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcore/snapcraft#729
(confidence 99%)
The issue comment directly identifies this PR, whose commit updates the dump plugin to preserve the install directory.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #729 Dump plugin: Don't remove install directory. | snapcraft | merged | Merged as commit 26ae9a507: Dump plugin no longer removes the install dir, enabling stage-packages by porting the Copy plugin's _linktree() logic into a new link_or_copy_tree() in file_utils.py, fixing LP #1611827. | |
| #2957 go plugin: do not remove install /bin directory before build | snapcraft | merged | Merged PR #2957 (commit 1fee618c0) stopped the Go plugin from purging $SNAPCRAFT_PART_INSTALL/bin before build, preserving stage-package files; added a spread test for coverage. | |
| #1983009 Snapcraft 7.1.0 fails to find stage package when cross-compiling | snapcraft (launchpad) | closed | Fixed by canonical/snapcraft#3416 (commit 8f418e3d9), restoring core20 behavior so stage packages come from build-on repositories during cross-compilation. | |
| #3211 pluginhandler: fix stage-snaps for v2 plugins | snapcraft | merged | Merged in canonical/snapcraft#3211 (0870f1738), fixing v2 stage-snaps handling and preventing prepare_build from discarding unpacked snaps. | |
| #1605164 Errors due to "missing" files using "stage:" | snapcraft (launchpad) | closed | Report of "missing" file errors from excluding paths via a stage: stanza was fixed by merged PR snapcore/snapcraft#920 (commit 5a253c13a), which made pluginhandler include staged files during prime for excludes/wildcard-only entries. | |
| #1642446 Better documentation for stage-packages and build-packages | snapcraft (launchpad) | closed | Resolved by merged canonical/snapcraft#913 (commit 2875ecb56), which updated plugin help to document stage-packages and build-packages, including ELF dependency crawling and omitted cases. | |
| #1812215 Stage-packages on dump plugin are not included into the snap | snapcraft (launchpad) | closed | Closed as expected behavior: dump-plugin stage-packages work, but the part's prime filter excludes their files unless explicitly listed or supplied elsewhere. |