← Back to issue list

Use a craft-providers callback hook to set the apt proxy by an app config

View original Github issue

Metadata

Project
craft-application
Number
#493
Type
issue
State
open
Author
lengau
Labels
Created
2024-09-25 16:53:59+00:00
Updated
2025-05-23 17:26:55+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done In the provider service, when creating an instance, send a callback to craft-providers (see: https://github.com/canonical/craft-providers/issues/665). The default implementation of this callback should use the config service to get the app's `apt_proxy` configuration and use it to configure the proxy in apt. This is roughly what's done in https://github.com/canonical/craft-application/blob/c971a6098d5c3b93787bca217090af885088e626/craft_application/fetch.py#L388-L405 When doing this, have the fetch service use this. ### Why it needs to get done Allow apt proxies in craft apps

Evaluation history

No evaluation history available.