Repository navigation
fix: break dev-dependency cycle that blocks publishing iceberg-property-macro - #3199
Merged
CTTY merged 1 commit intoSep 11, 2026
Merged
Conversation
…ty-macro (apache#3184) * fix: break dev-dependency cycle that blocks publishing iceberg-property-macro `iceberg` depends on `iceberg-property-macro`, and the macro crate had a versioned dev-dependency on `iceberg` via `workspace = true`. When cargo packages the macro crate for publishing it must resolve `iceberg ^0.11.0` from crates.io, which does not exist until the next step, so `cargo publish --workspace` fails with "failed to select a version". This is the same failure that broke the 0.5.0 publish and it reproduces on the v0.11.0-rc.1 tag. Make the dev-dependency path-only so cargo strips it when packaging. Mark the macro crate as internal to `iceberg` in its description and README, and add a `cargo publish --workspace --dry-run` step to CI so an unpublishable crate fails on the PR instead of after the release vote. Co-Authored-By: Claude Fable 5.1 <[email protected]> * ci: split publish dry-run between PR CI, RC tags, and RC creation The full `cargo publish --dry-run` compiles every packaged crate and took 13 minutes per PR. PR CI now runs it with `--no-verify`, which still catches dependency cycles, unresolvable versions, and missing metadata in seconds. The compiled dry-run moves to where it matters for a release: - `create_rc.sh` runs it before creating any artifact or the RC tag, so a crate that cannot be published fails RC creation. Opt out with `--check_publish 0`. - `publish.yml` runs it on RC tag pushes, which previously did nothing, so the exact tag is also checked on the MSRV toolchain the real publish uses. Co-Authored-By: Claude Fable 5.1 <[email protected]> * docs: drop RC tag workflow verification note from release guide The RC creation script now blocks on the publish dry-run, so the workflow run on the tag is a secondary check that does not need a manual step. Co-Authored-By: Claude Fable 5.1 <[email protected]> * docs: note requirements for create_rc.sh --check_publish Co-Authored-By: Claude Fable 5.1 <[email protected]> * Apply suggestion from @dannycjones Co-authored-by: Daniel Carl Jones <[email protected]> --------- Co-authored-by: Claude Fable 5.1 <[email protected]> Co-authored-by: Daniel Carl Jones <[email protected]> (cherry picked from commit 0aeccb8)
3 tasks
kevinjqliu
approved these changes
Sep 10, 2026
CTTY
approved these changes
Sep 11, 2026
CTTY
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for backporting it!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Backport 0aeccb8 as part of 0.11.0 release to unlock RC2.
Related: #3034
What changes are included in this PR?
Backport of 0aeccb8.
The dev dependency of iceberg-property-macro on iceberg is changed to a path dependency, to avoid a cycle between them when publishing.
Are these changes tested?
N/A
AI Disclosure
LLM was used to create the backport commit. Reviewed by me.