← Back to issue list

stage-snaps not usable with a brand store

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1833220
Type
issue
State
open
Author
~anonymouse67
Labels
Created
Updated
Closed

Current evaluation

stage-snaps/build-snaps cannot download snaps from a brand store because snapcraft does not propagate UBUNTU_STORE_ID/UBUNTU_STORE_AUTH_DATA_FILENAME to its internal snap download. Unlabeled, 0 comments, no maintainer activity since ~2021; references long-removed Python-2 code.

Suggested action: needs triage

Reason: The issue is a genuine feature gap (brand-store support for stage-snaps/build-snaps), not a support question, so close_not_a_bug doesn't fit. However, it has zero labels, zero comments, and no maintainer interaction in ~4.8 years, and the cited code path (snapcraft/internal/repo/snaps.py) no longer exists in the current craft-parts-based codebase, so it needs a maintainer to re-evaluate whether the problem still reproduces before any close/keep decision.

Impact: 35 Quick Win: 15.75 Staleness: 95 Complexity: 55 Confidence: 70 Support Request: 15

Issue body

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://github.com/snapcore/snapcraft/blob/master/snapcraft/internal/repo/snaps.py#L163-L175 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_STORE_AUTH_DATA_FILENAME=./creds UBUNTU_STORE_ID=my-cool-brand-store-id snap download my-cool-brand-store-snap --edge (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_STORE_AUTH_DATA_FILENAME=./creds UBUNTU_STORE_ID=my-cool-brand-store-id snapcraft It also fails in destructive-mode: UBUNTU_STORE_AUTH_DATA_FILENAME=./creds UBUNTU_STORE_ID=my-cool-brand-store-id snapcraft --destructive-mode

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 35
Quick Win: 15.75
Staleness: 95
Complexity: 55
Confidence: 70
Support Request: 15
needs triage stage-snaps/build-snaps cannot download snaps from a brand store because snapcraft does not propagate UBUNTU_STORE_ID/UBUNTU_STORE_AUTH_DATA_FILENAME to its internal snap download. Unlabeled, 0 comments, no maintainer activity since ~2021; references long-removed Python-2 code.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 40
Confidence: 90
Support Request: 20
close stale Reporter notes snapcraft fails to propagate brand store authentication environment variables to its internal snap download command, breaking build-snaps and stage-snaps usage. Issue has no labels, comments, or maintainer activity.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 50
Confidence: 75
Support Request: 10
needs triage Snapcraft fails to propagate brand store authentication environment variables to its underlying snap download command, blocking build/stage-snaps from brand stores. Untriaged with no maintainer response in nearly 7 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 40
Confidence: 80
Support Request: 20
close stale snapcraft fails to propagate brand store authentication environment variables to its internal snap download command, breaking build-snaps and stage-snaps. Unlabelled and inactive for over four years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 45
Confidence: 85
Support Request: 20
close stale Reports snapcraft failing to propagate authentication environment variables for brand store downloads via build-snaps or stage-snaps. Unlabeled, 7 years old, with no maintainer interaction or updates in over 4 years.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.