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

Bug #1605164 reported by Cris Dywan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Joe Talbott

Bug Description

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'

Revision history for this message
Cris Dywan (kalikiana) wrote :

It seems there's two problems here:

1. I don't understand the usecase of stage: as explained in "snapcraft help plugins".

2. "prime" doesn't exist, but "snap" does as I figured out from another yaml file.

snap:
    - -share/man

This does what I want.

Revision history for this message
Joe Talbott (joetalbott) wrote :

Christian,

Can you check and see if this PR[1] fixes the issue for you please? You should be able to exclude files in either the 'stage' or 'snap' stanzas.

[1] https://github.com/snapcore/snapcraft/pull/920

Changed in snapcraft:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Joe Talbott (joetalbott)
milestone: none → next
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.