Skip to content

Always setup config for vendored crates in Cargo easyblock#4018

Open
Flamefire wants to merge 1 commit intoeasybuilders:developfrom
Flamefire:cargo-offline
Open

Always setup config for vendored crates in Cargo easyblock#4018
Flamefire wants to merge 1 commit intoeasybuilders:developfrom
Flamefire:cargo-offline

Conversation

@Flamefire
Copy link
Contributor

Previously having offline = False skipped creating the checksum files for downloaded crates and adjusting the $CARGO_HOME/config.toml file to point to them causing them to be (almost silently) ignored.

Now always set up the config files for vendored crates and log information when crates != not offline, which looks suspicious at least.

This resolves the question raised in easybuilders/easybuild-easyconfigs#24643 which fixes an EasyConfig that has (many) crates specified but with offline = False causing them to be downloaded, extracted and then ignored.
As the result they will be downloaded which fails as the new versions available by now are not compatible with the used Rust version anymore

@boegel
Copy link
Member

boegel commented Jan 14, 2026

@Micket Can you take a look at this?

@Flamefire
Copy link
Contributor Author

Maybe test together with #3995

@boegel
Copy link
Member

boegel commented Jan 28, 2026

@Flamefire Can you sync this with develop now #3995 is merged?

@Flamefire
Copy link
Contributor Author

@boegel rebased

Previously having `offline = False` skipped creating the checksum files
for downloaded crates and adjusting the `$CARGO_HOME/config.toml` file
to point to them causing them to be (almost silently) ignored.

Now always set up the config files for vendored crates and log
information when `crates != not offline`, which looks suspicious at least.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants