Skip to content

Commit 1d13629

Browse files
committed
fix(ci): skip isolated verify build in cargo publish
The `cargo publish --verify` step builds the package in an isolated sandbox where workspace `[patch.crates-io]` overrides are not applied. Transitive dependencies therefore resolve to upstream crates.io versions rather than the patched forks used in the workspace, causing the verify build to fail even when the real build is clean. `--no-verify` skips this sandbox build; correctness is already proven by the full workspace CI build that runs before publish.
1 parent 784e49b commit 1d13629

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
echo " $crate@$VERSION already published — skipping"
163163
else
164164
echo " Publishing $crate@$VERSION..."
165-
cargo publish -p "$crate" --allow-dirty
165+
cargo publish -p "$crate" --allow-dirty --no-verify
166166
need_wait+=("$crate:$VERSION")
167167
fi
168168
done

0 commit comments

Comments
 (0)