Skip to content

Let cargo publish carry the copied OWID source - #29

Merged
jwrosewell merged 1 commit into
mainfrom
fix/publish-allow-vendored-owid
Aug 31, 2026
Merged

Let cargo publish carry the copied OWID source#29
jwrosewell merged 1 commit into
mainfrom
fix/publish-allow-vendored-owid

Conversation

@jwrosewell

Copy link
Copy Markdown
Contributor

The push to main from #28 ran the publish workflow, which stopped at fodid with cargo refusing thirteen files under fodid/src/owid as not committed to git (run https://github.com/51Degrees/rust/actions/runs/33408926369). Nothing was published, crates.io still holds 4.5.2 for both crates.

Those files are the OWID source that ci/copy-owid-source.ps1 copies from the owid-rust submodule before every build. The copy is git ignored on purpose so the submodule stays the only copy in the repository, and the fodid manifest lists the directory in include so the package carries it. Cargo's uncommitted files check does not know that, so the publish call in ci/publish-crates.sh now passes --allow-dirty, with a comment saying why. The workflow starts from a clean checkout, so the copy is the only thing the flag lets through.

Proof: locally, cargo publish --dry-run -p fodid refuses with the same message, and cargo publish --dry-run -p fodid --allow-dirty packages and verifies the crate. Merging this pushes to main and the workflow publishes fodid 4.5.3 and fiftyone-fodid-cloud 4.5.3.

Produced with AI assistance under James Rosewell's direction and needs human review.

The first publish of fodid 4.5.3 stopped with cargo refusing thirteen
files under fodid/src/owid that were not committed to git. They never
will be, because ci/copy-owid-source.ps1 copies them from the owid-rust
submodule before every build and git ignores the copy on purpose, so
the publish call now passes --allow-dirty. The workflow starts from a
clean checkout, so that copy is the only thing the flag lets through,
and a publish dry run of fodid packages and verifies with it.
@jwrosewell
jwrosewell merged commit 18ca997 into main Aug 31, 2026
4 checks passed
@jwrosewell
jwrosewell deleted the fix/publish-allow-vendored-owid branch August 31, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant