Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit 31153a8

Browse files
committed
fix: ensure toolchain components are installed, even if artifacts exist
1 parent e3c0cd1 commit 31153a8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

crates/cargo-gpu/src/install.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -264,14 +264,14 @@ package = "rustc_codegen_spirv"
264264
let target_spec_dir = update_target_specs_files(&source, &dummy_metadata, !skip_rebuild)
265265
.context("writing target spec files")?;
266266

267-
if !skip_rebuild {
268-
log::debug!("ensure_toolchain_and_components_exist");
269-
crate::install_toolchain::ensure_toolchain_and_components_exist(
270-
&toolchain_channel,
271-
self.auto_install_rust_toolchain,
272-
)
273-
.context("ensuring toolchain and components exist")?;
267+
log::debug!("ensure_toolchain_and_components_exist");
268+
crate::install_toolchain::ensure_toolchain_and_components_exist(
269+
&toolchain_channel,
270+
self.auto_install_rust_toolchain,
271+
)
272+
.context("ensuring toolchain and components exist")?;
274273

274+
if !skip_rebuild {
275275
// to prevent unsupported version errors when using older toolchains
276276
if !source.is_path() {
277277
log::debug!("remove Cargo.lock");

0 commit comments

Comments
 (0)