The next Snapcraft Clinic is scheduled for 2025-02-13T18:00:00Z! Come chat and get support for Snapcraft. There will be no clinic on Monday due to US and Canada holidays.
Meetings are 30 minutes long. You can join via Google Meet.
If you want to discuss any topics other than Snapcraft itself, reply here in advance so we can invite the correct parties.
There is a scenario that has came up in the Ubuntu Flutter Community for building our weather “Pulse” as a snap. The app uses OpenWeather API key, and @frederik-f wants to inject the value from the environment as he wants to store it in the GitHub secrets. Is it doable? How can it be done? I know it’s doable for LXD containers, but any mechanism to allow snapcraft to do it?
Snapcraft and the other craft applications don’t allow injecting arbitrary environment variables into the build environment in an attempt to be more deterministic.
One way to dance around this design would be to save the secret to a file at build time and then “load” that file into the build environment with a part using source: ..