Skip to content

fix: break dev-dependency cycle that blocks publishing iceberg-property-macro - #3199

Merged
CTTY merged 1 commit into
apache:0.11.xfrom
dannycjones:backport-0.11.x-property-macro-publish
Sep 11, 2026
Merged

CTTY merged 1 commit into
apache:0.11.xfrom
dannycjones:backport-0.11.x-property-macro-publish

Conversation

@dannycjones

Copy link
Copy Markdown
Contributor

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.

…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)
@dannycjones dannycjones mentioned this pull request Sep 10, 2026
3 tasks

@CTTY CTTY left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for backporting it!

@CTTY
CTTY merged commit 3b65902 into apache:0.11.x Sep 11, 2026
21 checks passed
@dannycjones
dannycjones deleted the backport-0.11.x-property-macro-publish branch September 12, 2026 10:32
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.

3 participants