docs/snapcraft-syntax.md should explicitly name the conditions under which a file is expected to end up in stage/ and snap/
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Expired
|
Undecided
|
Unassigned |
Bug Description
https:/
- stage-packages (list of strings) A list of Ubuntu packages to use that would support the part creation.
This is vague and leaves unclear, under which conditions files from these packages (or their dependencies) can be expected into end in the final snap (that they _can_ end up in snap somehow is implied by the different description of build-packages explicitly denying that for those).
E.g. having
stage-packages:
- libxml2-dev
snap:
- usr/lib/
- usr/include/
results in neither of:
usr/include/
usr/lib/
to end up in the snap, while only the second ends up in the stage/ dir. (on snapcraft 2.2.2/xenial)
description: | updated |
description: | updated |
Same with for example: x86_64- linux-gnu/ lib*
stage-packages:
- libnss3
snap:
- usr/lib/
Doing a 'ls stage/usr/ lib/x86_ 64-linux- gnu/lib* |grep nss|wc -l' find 8 matches, yet 'ls snap/usr/ lib/x86_ 64-linux- gnu/lib* |grep nss|wc -l' says there is no such file or dir ...