← Back to issue list

providers: add support to install Charmcraft snap from store (CRAFT-502)

View original Github issue

Metadata

Project
charmcraft
Number
#522
Type
pull request
State
merged
Author
cjp256
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action:

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
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.
qwen3.6-35b-a3b-mtp-q6 Merged. Implements store-based Charmcraft snap installation for non-Linux platforms, adds CHARMCRAFT_INSTALL_SNAP_CHANNEL for channel selection, and enables Linux users to override host injection. Windows test coverage added.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1950 fix: make charmcraft work with snap parallel installs charmcraft merged Merged to resolve issue #1770, enabling charmcraft to operate with snap parallel installs. Approved by two reviewers, the update modifies five files with 55 additions and 15 deletions.
75%
#402 providers: introduce charmcraft base configuration (CRAFT-261) charmcraft merged Merged after approval and passing CI. Adds CharmcraftBuilddBaseConfiguration to extend buildd image setup with python3-pip, python3-setuptools, and Charmcraft snap injection for provider environments.
71%
#2031 ci: use charmcraft from the store for weekly spread runs charmcraft merged Merged a CI update that switches weekly spread runs to pull charmcraft from the store instead of building a snap. This saves build time as edge sync delays are rare. Approved by two reviewers and passed all checks.
70%