vfox backend doesn't honor url_replacements settings #8427
Unanswered
markussiebert
asked this question in
Troubleshooting and bug reports
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
The vfox backend doesn't respect the
[settings.url_replacements]configuration when downloading tools. Other backends like aqua properly apply URL replacements, but vfox uses its own HTTP client that bypasses mise's URL replacement mechanism.Example
With this configuration in
~/.config/mise/config.toml:toml
[settings.url_replacements]
"https://download.redis.io/releases/" = "https://my-proxy.com/"
When installing redis (which uses vfox backend):
bash
MISE_VERBOSE=1 mise install redis@latest
The output shows:
INFO Downloading https://download.redis.io/releases/redis-8.6.1.tar.gz
Expected: Should download from
https://my-proxy.com/redis-8.6.1.tar.gzRoot Cause
The vfox crate (
crates/vfox/src/vfox.rsline 235) uses its own reqwest client:This
CLIENTis defined incrates/vfox/src/http.rsand doesn't apply mise's URL replacements defined insrc/http.rs::apply_url_replacements().In contrast, the aqua backend uses mise's HTTP client (
HTTP.download_file()) which properly applies URL replacements.Suggested Fix
Pass URL replacements to the vfox crate and apply them before making requests. This could be done by:
url_replacementsfield to theVfoxstructdownload()method before the HTTP requestWorkaround
Currently, the only workaround is to use a different backend (like aqua) for tools that need URL replacements, or configure URL replacements at the network/proxy level.
Environment
Beta Was this translation helpful? Give feedback.
All reactions