Skip to content

Commit e26b1e5

Browse files
authored
fix(Makefile): add a delay between cargo publish steps (#157)
crates.io is async, so publishing will fail if we immediately publish a second crate after publishing the first. There are definitely more reliable ways to fix this, but this is "good enough" for a makefile. It's idempotent anyways...
1 parent b15df2e commit e26b1e5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ set-version: check-clean deps-release check test
4747

4848
# Publish the current version to crates.io
4949
publish:
50-
echo "$(ORDERED_PACKAGES)" | xargs -n1 cargo publish -p "$$pkg"
51-
done
50+
for pkg in "$(ORDERED_PACKAGES)"; do cargo publish -p "$$pkg" && sleep 5; done
5251

5352
# Create a bundle in a deterministic location
5453
bundle: deps-build

0 commit comments

Comments
 (0)