please allow omitting source for the dump plugin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
i often use snapcraft with --desctructive-mode inside a clean lxd container when developing snaps.
when using the dump plugin to simply pull in some deb files as stage packages i have to use "source: ." to not have snapcraft error out ...
now changing something trivial like an environment setting in the apps: section or a layout, snapcraft detects that ./ has changed (which is true since there were prime and stage dirs added during the last build) so it decides that the pull and build steps have to be repeated.
having to add several changes to the apps: section (which is pretty common during development from scratch) sums up to a massive time sink for a trivial task and gets very annoying over time so it would be good if the dump plugin similar to the nil plugin could be used without having to specify "source: ."
Hi Oliver, can you give an example snapcraft.yaml where you use this? The reason I ask is because I'm trying to understand why the nil plugin (or dump with the path to the deb file itself as the source) doesn't work for your use case.