-
Notifications
You must be signed in to change notification settings - Fork 545
Closed
Labels
has-workaroundValid issue, in the meantime a workaround is availableValid issue, in the meantime a workaround is availablerustPull requests that update Rust codePull requests that update Rust codestatus/in-progressThis issue is currently being worked onThis issue is currently being worked ontype/bugSomething isn't workingSomething isn't working
Description
Summary
Bottlerocket fails to build if the default toolchain on your build host is Rust 1.85.0. We are investigating. In the meantime, you can workaround the issue by locking your Rust toolchain to 1.84.1:
rustup toolchain default 1.84.1
Platform I'm building on:
Amazon Linux 2023, aarch64
What I expected to happen:
The following should succeed:
rustup toolchain install 1.85.0
cargo +1.85.0 make -e BUILDSYS_ARCH=aarch64 -e BUILDSYS_VARIANT=aws-k8s-1.30 check-licenses
What actually happened:
The command errors with the following:
[cargo-make][1] INFO - Running Task: check-licenses
2025-02-26 20:12:05 [ERROR] failed to fetch crates: Updating crates.io index
Updating git repository `https://github.com/bottlerocket-os/bottlerocket-settings-sdk`
warning: spurious network error (3 tries remaining): failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12)
warning: spurious network error (2 tries remaining): failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12)
warning: spurious network error (1 tries remaining): failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12)
error: failed to get `bottlerocket-settings-models` as a dependency of package `models v0.1.0 (/tmp/sources/models)`
Caused by:
failed to load source for dependency `bottlerocket-settings-models`
Caused by:
Unable to update https://github.com/bottlerocket-os/bottlerocket-settings-sdk?tag=bottlerocket-settings-models-v0.7.0#2a7c0986
Caused by:
failed to fetch into: /tmp/.cargo/git/db/bottlerocket-settings-sdk-3ffd24dec00e96c2
Caused by:
network failure seems to have happened
if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
Caused by:
failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12)
2025-02-26 20:12:05 [ERROR] `cargo metadata` exited with an error: Updating crates.io index
Updating git repository `https://github.com/bottlerocket-os/bottlerocket-settings-sdk`
warning: spurious network error (3 tries remaining): failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12)
warning: spurious network error (2 tries remaining): failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12)
warning: spurious network error (1 tries remaining): failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12)
error: failed to get `bottlerocket-settings-models` as a dependency of package `models v0.1.0 (/tmp/sources/models)`
Caused by:
failed to load source for dependency `bottlerocket-settings-models`
Caused by:
Unable to update https://github.com/bottlerocket-os/bottlerocket-settings-sdk?tag=bottlerocket-settings-models-v0.7.0#2a7c0986
Caused by:
failed to fetch into: /tmp/.cargo/git/db/bottlerocket-settings-sdk-3ffd24dec00e96c2
Metadata
Metadata
Assignees
Labels
has-workaroundValid issue, in the meantime a workaround is availableValid issue, in the meantime a workaround is availablerustPull requests that update Rust codePull requests that update Rust codestatus/in-progressThis issue is currently being worked onThis issue is currently being worked ontype/bugSomething isn't workingSomething isn't working