Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/actions/workspace-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,21 @@ runs:
echo "Cleaning target/package directory to ensure fresh state"
rm -rf target/package

# Clear cargo registry to ensure fresh resolution during verification.
# This prevents issues where cached metadata from previous runs
# might interfere with workspace dependency feature resolution
# during the verification step (related to cargo#14283, cargo#14789).
# Specifically, this ensures the temp registry used during workspace
# publish verification doesn't conflict with cached crates.io data.
- name: Clear cargo registry for fresh resolution
if: ${{ inputs.mode == 'dry-run' }}
shell: bash
run: |
echo "Clearing cargo registry for fresh resolution"
rm -rf ~/.cargo/registry/cache
rm -rf ~/.cargo/registry/index
rm -rf ~/.cargo/registry/src

# Dry-run vs real publish
- name: Dry-run workspace publish
if: ${{ inputs.mode == 'dry-run' }}
Expand Down
Loading