We are trying to use snapcraft to create a snap for our application (lets call this “main-private-snap”). We have modularise our application into multiple snaps, where “main-private-snap” depends on “private-snap1” and “private-snap2”. Both “private-snap1” and “private-snap2” are built before hand, and is published on snapstore with Private visibility.
Is there a way to pull these private snaps when building the main private snap? What is the method/best practice to pass in our snap store credentials?
Note: We would not want to use a multi parts approach as “private-snap-1” is also a dependency for our other applications.
parts:
main-private-snap:
plugin: cmake
source: <some-repo>
build-packages:
- <some dependencies>
build-snaps:
- private-snap1
- private-snap2