Skip to content

Conversation

@huitseeker
Copy link
Contributor

@huitseeker huitseeker commented Jan 4, 2026

The workspace publish dry-run fails with unresolved import miden_utils_sync::OnceLockCompat during verification. This happens because cached registry data from previous CI runs can interfere with cargo's temp registry used for workspace dependency resolution.

During verification, cargo should use the packaged v0.21.0 from the temp registry, but stale cache entries may cause it to resolve against crates.io data instead (where v0.20.1 lacks OnceLockCompat).

=> Clear ~/.cargo/registry/{cache,index,src} before the dry-run to ensure fresh resolution without interference from cached data.

Replaces #2505

The workspace publish dry-run fails with `unresolved import
miden_utils_sync::OnceLockCompat` during verification. This happens
because cached registry data from previous CI runs can interfere with
cargo's temp registry used for workspace dependency resolution.

During verification, cargo should use the packaged v0.21.0 from the
temp registry, but stale cache entries may cause it to resolve
against crates.io data instead (where v0.20.1 lacks OnceLockCompat).

Clear ~/.cargo/registry/{cache,index,src} before the dry-run to ensure
fresh resolution without interference from cached data.

Closes #2505
@huitseeker huitseeker added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Jan 4, 2026
@huitseeker huitseeker marked this pull request as ready for review January 4, 2026 19:59
@huitseeker huitseeker requested a review from bobbinth January 4, 2026 19:59
Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you!

@bobbinth bobbinth merged commit 85dbe69 into next Jan 5, 2026
17 of 18 checks passed
@bobbinth bobbinth deleted the huitseeker/fix-workspace-dry-run-registry-cache branch January 5, 2026 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants