stage-snaps not usable with a brand store
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
It's not possible AFAICT to configure snapcraft to download snaps from a brand store with build-snaps or stage-snaps. Poking around at the source, it looks like snapcraft is downloading snaps with this function: https:/
which if I run `snap download` outside of snapcraft I am able to download snaps from my brand store by specifying the env vars:
UBUNTU_
(where creds is from snapcraft export-login)
Attempting to provide this env vars to snapcraft doesn't seem to propogate them to the snap download command that snapcraft runs. I.e. this fails:
UBUNTU_
It also fails in destructive-mode:
UBUNTU_
Ian, I have just replied to a customer that what you proposed should work as long as the path to the credentials is absolute. Would you be able to try that and confirm that works for you?
(Sergio mentioned that the snap build occurs in a different path than where you are at when providing the creds)