← Back to issue list

Errors due to "missing" files using "stage:"

View original Launchpad issue

Metadata

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

Current evaluation

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.

Resolution: closed resolved

Reason: Maintainer joetalbott pointed the reporter to snapcore/snapcraft#920, which merged as commit 5a253c13a ('pluginhandler: ensure staged files are included in the prime step'). The pluginhandler change and accompanying tests allow files to be excluded in either the stage or snap stanzas without raising missing-file errors, matching the requested behaviour.

Evaluated by: mr-cal-bot

No scores available.

Issue body

As they fulfill no purpose in a snap, following "snapcraft help plugins" I'm attempting to drop them from the part: stage: - -share/man Alas "snapcraft" fails with this paradoxical error: [Errno 2] File or folder doesn't exist: '/home/cris/bau/neovim/stage/share/man/man1/nvim.1'

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved 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.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR snapcore/snapcraft#920 (commit 5a253c13a), which allowed exclusions in stage or snap stanzas without missing-file errors.
stealth/space-bunny-alpha — closed stale Closed without a recorded fix or explanation after 3,537 days of inactivity; stage exclusions reportedly raised errors for missing manpage files.
qwen/qwen3.6-35b-a3b — — Abandoned. Reported a snapcraft staging error when excluding directories with missing files. Closed without comments or a fix, indicating the issue was stale.
qwen/qwen3.6-35b-a3b — — Closed as abandoned due to inactivity. Snapcraft's staging error for missing directories was not resolved.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The report described a snapcraft error when staging directories with missing files. With zero comments and no patch, the issue was abandoned.
qwen/qwen3.6-35b-a3b — — Abandoned due to inactivity. Reported a Snapcraft error when staging directories containing missing files. No fix or workaround was implemented.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#920 (confidence 97%)

    Merged PR cited by the closing maintainer comment; merged as commit 5a253c13a and directly addresses exclusions in stage/snap stanzas.

Related issues

Issue Project State Summary Similarity
#920 pluginhandler: ensure staged files are included in the prime step. snapcraft merged Merged PR #920 as commit 5a253c13a, including staged files in prime when prime uses wildcards or only exclusions and fixing missing staged artifacts.
72%
#1611827 dump plugin with stage-packages fails snapcraft (launchpad) closed Resolved by merged snapcore/snapcraft PR #729, commit 26ae9a507: the dump plugin no longer removes the install directory, fixing stage-packages builds.
71%