-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.regression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.
Description
When trying to build in an offline environment (eg: where crates.io is accessible only through a proxy or mirror), ./x.py dist
fails with:
(truncated)
Dist rust-src-1.60.0-dev
finished in 6.561 seconds
Dist rust-dev-1.60.0-dev-x86_64-unknown-linux-gnu
finished in 52.322 seconds
Updating crates.io index
warning: spurious network error (2 tries remaining): [6] Couldn’t resolve host name (Could not resolve host: crates.io)
(truncated)
warning: spurious network error (2 tries remaining): [6] Couldn’t resolve host name (Could not resolve host: crates.io)
error: failed to sync
Caused by:
failed to download packages
Caused by:
failed to download from ‘https://crates.io/ap1/v1/crates/addr2line/0.17.0/download’
Caused by:
[6] Could not resolve host name (Could not resolve host: crates.io)
Build completed unsuccessfully in 0:23:21
I have cargo configured to use the proxy in ~/.cargo/config
, but this seems to have no affect.
Code
I tried this code:
./configure
./x.py dist
I expected to see this happen: A successful build
Instead, this happened: An unsuccessful build
Version it worked on
It most recently worked on: 1.53.0, but I did not try later versions until 1.60.0
Version with regression
1.60.0
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.regression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.