Skip to content

Commit

Permalink
Pass --locked to publish as well (#1257)
Browse files Browse the repository at this point in the history
Missed this in previous change.
  • Loading branch information
graydon authored Nov 28, 2023
1 parent b357bda commit 7dbf21e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ reobserve-tests:
UPDATE_OBSERVATIONS=1 cargo test --locked -p soroban-env-host --features testutils --profile test-opt

publish:
cargo workspaces publish --all --force '*' --from-git --yes
cargo workspaces publish --locked --all --force '*' --from-git --yes

publish-dry-run:
./publish-dry-run.sh
Expand Down
3 changes: 2 additions & 1 deletion publish-dry-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mv Cargo.toml.bak Cargo.toml

# Package the crates that will be published. Verification is disabled because
# we aren't ready to verify yet.
cargo-hack hack --ignore-private package --no-verify --each-feature
cargo-hack hack --ignore-private package --locked --no-verify --each-feature

# Add each crate that was packaged to the vendor/ directory.
for crate in target/package/*.crate
Expand All @@ -36,4 +36,5 @@ cargo-hack hack \
--config "source.crates-io.replace-with = 'vendored-sources'" \
--config "source.vendored-sources.directory = 'vendor'" \
package \
--locked \
--target x86_64-unknown-linux-gnu

0 comments on commit 7dbf21e

Please sign in to comment.