← Back to issue list

Excluding a file in stage but including it in prime raises an exception

View original Launchpad issue

Metadata

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

Current evaluation

Closed as stale without a fix; identified as a semi-duplicate of canonical/craft-parts#766.

Resolution: closed stale

Reason: Maintainer mr-cal closed the report as stale and a semi-duplicate of canonical/craft-parts#766. No resolving PR or commit was recorded, and the related issue remains open.

Evaluated by: mr-cal-bot

No scores available.

Issue body

When a snapcraft.yaml excludes a file with the stage keyword, but includes it with the prime keyword, a FileNotFoundError exception is raised. To reproduce: mkdir test cd test touch conflict-file Download the attached snapcraft.yaml file and save it in the test directory Run snapcraft [...] FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/tmp/test/stage/conflict-file' -> '/home/ubuntu/tmp/test/prime/conflict-file' [...] Full log: http://paste.ubuntu.com/26031810/

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Closed as stale without a fix; identified as a semi-duplicate of canonical/craft-parts#766.
stealth/space-bunny-alpha — closed stale Closed as stale and identified as a semi-duplicate of canonical/craft-parts#766; no fixing PR or commit was recorded.
stealth/space-bunny-alpha — closed superseded Closed as a Launchpad duplicate of canonical/snapcraft#2815; that merged PR addressed minor developer-environment and documentation updates.
qwen/qwen3.6-35b-a3b — — Closed. Resolved a FileNotFoundError triggered when snapcraft.yaml excludes a file during stage but includes it during prime.
qwen/qwen3.6-35b-a3b
Staleness: 99
Complexity: 30
Confidence: 90
Support Request: 5
close stale Bug where excluding a file in stage but including it in prime raises a FileNotFoundError. Untriaged and inactive for over eight years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 35
Confidence: 85
Support Request: 10
close stale FileNotFoundError raised when excluding a file in stage but including it in prime. The report is over 8 years old with no maintainer interaction or updates.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 40
Confidence: 85
Support Request: 10
close stale Bug where excluding a file in stage but including it in prime causes a FileNotFoundError during snapcraft build. Issue is over 8 years old with no maintainer interaction.

Update history

Date Change
created

Related work

  • Duplicate Of: canonical/craft-parts#766 (confidence 95%)

    The closing comment explicitly identified this open craft-parts issue as a semi-duplicate covering prime failures after stage exclusions.

Related issues

Issue Project State Summary Similarity
#4835 File filtering handled incorrectly snapcraft open A reproducible craft-parts migration bug makes prime copy stage-excluded files when prime includes their parent; the triaged Snapcraft issue remains open pending craft-parts#766 design work.
71%
#1770364 Using 2 remote parts, file not being copied from stage to prime snapcraft (launchpad) closed Reported a bug where a file staged by a second remote part wasn't copied to prime. Closed as stale after the remote parts feature was removed from snapcraft.
70%