providers: add support to install Charmcraft snap from store (CRAFT-502)
Metadata
Current evaluation
Merged PR #522 added Snap Store installation for non-Linux targets and Linux opt-in via CHARMCRAFT_INSTALL_SNAP_CHANNEL, with channel selection and Windows test support.
Resolution: closed resolved
Reason: PR #522 was merged with commits fa5f113f and aa4f3859, implementing managed-environment Snap Store installation and channel handling.
Evaluated by: mr-cal-bot
No scores available.
Issue body
On Linux, the default behavior is to inject the host snap into the target
environment.
On other platforms, the Charmcraft snap is installed from the Snap Store.
When installing the snap from the Store, we check if the user specifies a
channel, using CHARMCRAFT_INSTALL_SNAP_CHANNEL=<channel>. If unspecified,
we use the default determined by get_managed_environment_snap_channel_default().
On Linux, the user may specify this environment variable to force Charmcraft
to install the snap from the Store rather than inject the host snap.
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #522 added Snap Store installation for non-Linux targets and Linux opt-in via CHARMCRAFT_INSTALL_SNAP_CHANNEL, with channel selection and Windows test support. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #522 (commits fa5f113f and aa4f3859) added Snap Store installation for non-Linux platforms, with CHARMCRAFT_INSTALL_SNAP_CHANNEL channel selection and Windows test updates. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged canonical/charmcraft#522, adding Snap Store installation of Charmcraft with CHARMCRAFT_INSTALL_SNAP_CHANNEL support; Linux still injects the host snap by default. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged after approval and passing CI. Adds support to install the Charmcraft snap from the Snap Store instead of injecting the host snap. Channel selection is configurable via CHARMCRAFT_INSTALL_SNAP_CHANNEL. Includes Windows test updates. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Replaces host snap injection with Snap Store installation on Linux and other platforms. Introduces CHARMCRAFT_INSTALL_SNAP_CHANNEL for version selection and updates tests to run on Windows. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #402 providers: introduce charmcraft base configuration (CRAFT-261) | charmcraft | merged | Merged in charmcraft#402 via 481525e5, adding craft-providers and a Charmcraft buildd configuration that installs pip, setuptools, and injects the host Charmcraft snap. | |
| #891 (internal) Install snap via craft-providers API (CRAFT-1277) | charmcraft | merged | Merged PR #891 as commit 456601ff, switching Charmcraft snap installation to the craft-providers API and completing CRAFT-1277. | |
| #1950 fix: make charmcraft work with snap parallel installs | charmcraft | merged | Merged PR #1950 via commit 2399ddf8, fixing Charmcraft conflicts during parallel snap installs and adding spread regression coverage for issue #1770. | |
| #327 Fix instructions to install from stable. | charmcraft | merged | Merged #327, updating Charmcraft's installation instructions to install the stable Snap release; merged in commit e8d67aa2. |