← Back to issue list

providers: do not push .bashrc to Multipass instances

View original Github issue

Metadata

Project
snapcraft
Number
#3967
Type
pull request
State
merged
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

Merged as 2a8d07b24 to skip pushing .bashrc to Multipass; later superseded by #4010 (3b6220cb), which restored it.

Resolution: closed superseded

Reason: PR #3967 merged a temporary workaround for the craft-providers Multipass limitation. PR #4010 later removed that workaround and restored .bashrc transfers in commit 3b6220cb.

Evaluated by: mr-cal-bot

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`? ----- A limitation of craft-providers prevents snapcraft from pushing files to Multipass's `/root/` directory. This limitation was uncovered with the recent PR https://github.com/snapcore/snapcraft/pull/3951. This PR prevents pushing `.bashrc` to Multipass environments. This reversion can be addressed after https://github.com/canonical/craft-providers/issues/169 is resolved. Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Merged as 2a8d07b24 to skip pushing .bashrc to Multipass; later superseded by #4010 (3b6220cb), which restored it.
stealth/space-bunny-alpha — closed resolved Merged PR #3967 (commit 2a8d07b), adding a temporary workaround to stop pushing .bashrc to Multipass instances until craft-providers#169 is resolved.
qwen/qwen3.6-35b-a3b — — 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.
qwen3.6-35b-a3b-mtp-q6 — — Merged a workaround to stop pushing .bashrc to Multipass instances, addressing a craft-providers limitation blocking writes to /root/. The change will be reverted once craft-providers issue #169 is resolved. Unrelated test failures were fixed separately.

Update history

No update history recorded yet.

Related work

  • Superseded By: canonical/snapcraft#4010 (confidence 100%)

    Merged restoration of .bashrc transfers, replacing the workaround introduced by #3967.

  • Blocked By: canonical/craft-providers#169 (confidence 98%)

    The underlying Multipass file-push limitation prevented restoration until resolved.

  • Related To: snapcore/snapcraft#3951 (confidence 95%)

    Its instance environment changes uncovered the Multipass .bashrc limitation.

Related issues

Issue Project State Summary Similarity
#4010 providers: push .bashrc to Multipass instances snapcraft merged PR #4010 merged as commit 3b6220cb: re-enabled pushing .bashrc into Multipass instances via craft-providers push_file_io, dropping the host temp-file workaround added in #3967 (CRAFT-1545).
84%