← Back to issue list

Add a callback hook to allow users to configure a base on warmup before running any apt/snap commands

View original Github issue

Metadata

Project
craft-providers
Number
#665
Type
issue
State
open
Author
lengau
Labels
Type: Enhancement
Created
Updated
Closed

Current evaluation

Enhancement request to add a callback hook during warmup for apt configuration before apt commands execute

Suggested action: keep open

Reason: Valid enhancement request from 23 months ago that remains applicable for configuring apt (e.g., proxies) before apt commands run. The current warmup() method in craft_providers/base.py has no such callback hook, and the use case (enabling fetch service to intercept initial apt update) is still relevant. No evidence of implementation or rejection found.

Impact: 60 Quick Win: 36.0 Staleness: 60 Complexity: 40 Confidence: 70 Support Request: 10

Issue body

### What needs to get done When creating a base, this should allow a callback hook to be called on warmup immediately after setting up networking, but before doing anything with apt. ### Why it needs to get done This enables configuration of apt (including proxies, etc.) before apt is run. Amongst other things, this allows the fetch service to intercept the initial `apt update`.

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 60
Quick Win: 36.0
Staleness: 60
Complexity: 40
Confidence: 70
Support Request: 10
keep open Enhancement request to add a callback hook during warmup for apt configuration before apt commands execute
qwen/qwen3.6-35b-a3b
Staleness: 80
Complexity: 60
Confidence: 75
Support Request: 10
close stale Enhancement request to add a callback hook during base warmup for pre-apt/snap configuration. Currently linked to an internal Jira ticket with no maintainer engagement or implementation progress.
qwen3.6-35b-a3b-mtp-q6
Staleness: 75
Complexity: 40
Confidence: 70
Support Request: 5
needs triage Enhancement request to add a callback hook during base warmup for pre-apt/snap configuration. Currently awaiting maintainer assessment and prioritization.
qwen3.6-35b-a3b-mtp-q6
Staleness: 65
Complexity: 45
Confidence: 75
Support Request: 10
needs triage Enhancement request to add a callback hook during base warmup for apt/snap configuration before execution. Currently tracked in internal Jira with minimal maintainer engagement.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.