`SNAPCRAFT_UA_TOKEN` does not work on `base: core24`
Metadata
Current evaluation
SNAPCRAFT_UA_TOKEN is ignored for base: core24 managed builds, so ESM archives are unavailable; triaged, and current code/docs intentionally use host Pro token with --pro for core24+ instead of the legacy UA token.
Suggested action: close not a bug
Reason: Current core24+ code in snapcraft/commands/lifecycle.py explicitly warns "Ignoring the 'SNAPCRAFT_UA_TOKEN' environment variable. The Pro token attached to the host will be used instead" and errors on --ua-token, and the 9.1 release notes deprecate ua-services for core24+ in favor of the new --pro=<services> option documented in pack-a-pro-snap.rst. The reported behavior is the intended design: core24+ Pro builds attach the host's Pro token rather than an env-var token, so the user's expectation of SNAPCRAFT_UA_TOKEN working on core24 is not supported; the supported path is a Pro-attached host plus --pro=esm-apps,esm-infra.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
50
Quick Win:
30.0
Staleness:
55
Complexity:
40
Confidence:
70
Support Request:
30
|
close not a bug | SNAPCRAFT_UA_TOKEN is ignored for base: core24 managed builds, so ESM archives are unavailable; triaged, and current code/docs intentionally use host Pro token with --pro for core24+ instead of the legacy UA token. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
60
Complexity:
50
Confidence:
85
Support Request:
5
|
keep open | SNAPCRAFT_UA_TOKEN fails to attach Ubuntu Pro or ESM archives when building with base: core24 and --use-lxd, unlike core22. Currently triaged and awaiting investigation. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
60
Complexity:
60
Confidence:
85
Support Request:
5
|
keep open | SNAPCRAFT_UA_TOKEN fails to attach Ubuntu Pro/ESM when building with base: core24 and --use-lxd. Triaged bug awaiting investigation. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
60
Complexity:
50
Confidence:
90
Support Request:
5
|
keep open | SNAPCRAFT_UA_TOKEN fails to attach Ubuntu Pro or enable ESM repositories when building with base core24 in managed LXD. The pro command and ESM sources are missing. Triaged bug, open 77 days, awaiting assignment. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/snapcraft#6337
(confidence 75%)
Commit 62417a9a7 'feat: error on ua-services for core24+ (#6337)' is part of the same core24 Pro redesign that supersedes the legacy UA token path.
-
Related To:
canonical/snapcraft#6308
(confidence 70%)
Commit 84f97242e 'feat: deprecate ua-services key for core24+ (#6308)' documents the migration from UA token mechanism to --pro for core24+.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4874 UA token builds are no longer supported for `base: core24` snaps | snapcraft | closed | The --ua-token flag remains unsupported for core24 snaps. Core24 builds will instead use Pro LXD containers as a replacement. The issue is closed as a deferred enhancement while the new container approach is developed. |