An empty snap directory ends up in the snap
Bug #1660890 reported by
Leo Arias
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Medium
|
Kyle Fazzari |
Bug Description
The snap directory is not filtered out of the snap. I think this is almost never the intended behaviour.
$ snapcraft init
$ snapcraft
$ ls prime/
meta snap
This is clearly wrong, the snap directory is empty. But I think this is also wrong:
$ snapcraft init
$ touch snap/file
$ snapcraft
$ ls prime/snap/
file
summary: |
- The snap directory ends up in the snap + An empty snap directory ends up in the snap |
Changed in snapcraft: | |
importance: | Undecided → Medium |
assignee: | nobody → Sergio Schvezov (sergiusens) |
status: | New → Triaged |
milestone: | none → 2.28 |
Changed in snapcraft: | |
milestone: | 2.28 → none |
Changed in snapcraft: | |
milestone: | none → 2.43 |
Changed in snapcraft: | |
assignee: | Sergio Schvezov (sergiusens) → Kyle Fazzari (kyrofa) |
status: | Triaged → In Progress |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I think that if you want to include the file, you should be explicit and do something like:
parts:
file:
source: snap
plugin: dump
However, this could be confusing as the file will end up in the root of the snap, and somebody might expect it in the snap directory. That's more related to https:/ /bugs.launchpad .net/snapcraft/ +bug/1660885