providers: push .bashrc to Multipass instances
Metadata
Current evaluation
Merged. Replaces temporary host file creation with craft-providers.push_file_io to push .bashrc directly into Multipass instances. Approved by two reviewers, passed CI, and merged into main.
Suggested action: —
No scores available.
Issue body
- [X] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [X] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [X] Have you successfully run `make lint`?
- [X] Have you successfully run `pytest tests/unit`?
-----
1. Allow `.bashrc` to be pushed into Multipass instances. This is now possible due to [this `craft-providers` PR](https://github.com/canonical/craft-providers/pull/193) being merged.
2. Stop writing `.bashrc` to a temporary file on the host. Instead, use `craft-providers` method `push_file_io`.
(CRAFT-1545)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Replaces temporary host file creation with craft-providers.push_file_io to push .bashrc directly into Multipass instances. Approved by two reviewers, passed CI, and merged into main. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into main. Replaces temporary host file creation with craft-providers.push_file_io to directly push .bashrc to Multipass instances. Code coverage increased by 0.07%, with linting fixes applied in a follow-up PR. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into main. Uses craft-providers.push_file_io to push .bashrc to Multipass instances, removing temporary host files. Coverage increased by 0.07%. Linting issues were fixed in a separate PR. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3967 providers: do not push .bashrc to Multipass instances | snapcraft | merged | Merged a temporary workaround to stop pushing .bashrc to Multipass instances, bypassing a craft-providers limitation that blocks writes to /root/. Approved and passed CI, this resolves the immediate issue until the upstream bug is fixed. | |
| #491 providers: introduce multipass support (CRAFT-409) | charmcraft | merged | Merged. Adds Multipass provider support with detection via env var, snap config, or platform default. Updates execute_run() to use pathlib.Path and adds tests. Approved by two reviewers, passed CI, and modified 10 files. |