Skip to content

Commit

Permalink
Fix verify publish ci
Browse files Browse the repository at this point in the history
Step `Verify cargo publish includes all files needed to build` is
failing with:
```
error: crates-io is replaced with non-remote-registry source dir chrono-tz/vendor;
include `--registry crates-io` to use crates.io
```

The error appears only with cargo 1.82 and greater.

Passing `--registry crates-io` is not a solution because it a nightly-only option.

Calling `cargo publish -p <name>` for each crate solves the problem.
  • Loading branch information
acrrd authored and djc committed Jan 7, 2025
1 parent 8450e59 commit 16279f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ jobs:
# doesn't matter if it is empty.
echo '{"files":{}}' > vendor/$name/.cargo-checksum.json
done
cargo package --config "source.vendored-sources.directory = 'vendor'" \
cargo package -p chrono-tz --config "source.vendored-sources.directory = 'vendor'" \
--config "source.crates-io.replace-with = 'vendored-sources'"
cargo package -p chrono-tz-build --config "source.vendored-sources.directory = 'vendor'" \
--config "source.crates-io.replace-with = 'vendored-sources'"
lint:
Expand Down

0 comments on commit 16279f8

Please sign in to comment.