I’m working on a new snap for network-manager for Ubuntu Core 18 (which uses base: core18), and have been trying to cleanup snapcraft warning as I hit them. I recently tackled this one:
Files from the build host were migrated into the snap to satisfy dependencies that would otherwise not be met. This feature will be removed in a future release. If these libraries are needed in the final snap, ensure that the following are either satisfied by a stage-packages entry or through a part…
I made sure all the libraries listed were included via stage-packages, as suggested, however noticed that two of the libraries mentioned should be provided by the core18 base snap:
When I asked @niemeyer about preventing these dependencies from automatically being staged, he asked that I create a post on the forum.
For reference, I’m using snapcraft version 2.42.1.