← Back to issue list

multipass: do not always use sudo to execute commands

View original Github issue

Metadata

Project
craft-providers
Number
#281
Type
issue
State
open
Author
mr-cal
Labels
Type: Enhancement
Created
Updated
Closed

Current evaluation

Enhancement to make sudo behavior configurable in MultipassInstance.execute_run() and execute_popen(). Open 1200 days with no maintainer engagement or implementation.

Suggested action: close stale

Reason: This enhancement has been open for 1200 days (over 3 years) with zero maintainer comments or engagement, indicating it was never prioritized. While the code still unconditionally wraps commands with sudo via _rootify_multipass_command(), the complete lack of maintainer interaction over such an extended period suggests this is not a current priority.

Impact: 40 Quick Win: 28.0 Staleness: 90 Complexity: 30 Confidence: 70 Support Request: 20

Issue body

By default, MultipassInstance wraps all commands with sudo: https://github.com/canonical/craft-providers/blob/6b3f8c93c8b9a1c0b245036bf8a7c4a6f11af1f7/craft_providers/multipass/multipass_instance.py#L35-L57 This behavior should be configurable with a parameter `use_sudo: bool` for `execute_run()` and `execute_popen()`.

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 40
Quick Win: 28.0
Staleness: 90
Complexity: 30
Confidence: 70
Support Request: 20
close stale Enhancement to make sudo behavior configurable in MultipassInstance.execute_run() and execute_popen(). Open 1200 days with no maintainer engagement or implementation.
qwen/qwen3.6-35b-a3b
Staleness: 50
Complexity: 20
Confidence: 80
Support Request: 0
keep open Enhancement request to configure sudo usage in MultipassInstance. Open for 3 years, last activity 3 months ago, no comments.
qwen3.6-35b-a3b-mtp-q6
Staleness: 80
Complexity: 20
Confidence: 75
Support Request: 0
needs triage Enhancement to make sudo usage configurable in MultipassInstance execute methods. Open for over three years with zero maintainer comments or prioritization.
qwen3.6-35b-a3b-mtp-q6
Staleness: 70
Complexity: 15
Confidence: 70
Support Request: 0
close stale Enhancement to make sudo usage configurable in MultipassInstance execute methods. Open for over three years with no implementation or maintainer discussion.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.