Skip to content

fix(ledger): re-checkout cargo config in clippy/rust_tests jobs too#106

Merged
chcmedeiros merged 1 commit into
mainfrom
fix/cache-clobber-clippy-rust-tests
Jun 22, 2026
Merged

fix(ledger): re-checkout cargo config in clippy/rust_tests jobs too#106
chcmedeiros merged 1 commit into
mainfrom
fix/cache-clobber-clippy-rust-tests

Conversation

@chcmedeiros

Copy link
Copy Markdown
Collaborator

Follow-up to the build_ledger/build_package cache-clobber fix. The clippy and rust_tests jobs also cache ./app/rust/.cargo (incl. the tracked config.toml); a pre-migration cache restores an old config.toml with build-std over the checkout. Once an app moves its host toolchain to nightly (immediate-abort via Cargo.toml profile), that stale build-std rebuilds host coreE0152: duplicate lang item.

Adds the same post-restore git checkout -- app/rust/.cargo/config.toml to both jobs. v3 tag moved to this commit. Surfaced by Zondax/ledger-icp#332.

The clippy and rust_tests jobs cache ./app/rust/.cargo (which includes
the tracked config.toml) too. A pre-migration cache restores an old
config.toml with build-std over the checkout; once the host toolchain is
nightly that build-std rebuilds host core -> E0152 duplicate lang item.

Apply the same re-checkout of the committed config.toml after the cache
restore in these two jobs (build_ledger/build_package already do this).
@chcmedeiros chcmedeiros merged commit 16e9fff into main Jun 22, 2026
1 check passed
@chcmedeiros chcmedeiros deleted the fix/cache-clobber-clippy-rust-tests branch June 22, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant