Skip to content

chore(ci): set publish = false for unpublished grpc crates in release-plz - #2963

Merged
LucioFranco merged 1 commit into
masterfrom
chore/release-plz-publish-config
Oct 26, 2026
Merged

LucioFranco merged 1 commit into
masterfrom
chore/release-plz-publish-config

Conversation

@LucioFranco

Copy link
Copy Markdown
Member

Motivation

release-plz has failed on every push to master since #2955, so the release PR (#2800) hasn't been updated since Oct 22 and is missing #2962. The release job fails with:

Package `protoc-gen-grpc-rust` has `publish = false` or `publish = []` in the Cargo.toml, but it has `publish = true` in the release-plz configuration.

and the release-pr job is skipped as a result.

In the release-plz version the action installs (0.4.1), a package that has its own [[package]] entry is treated as publish = true unless the entry says otherwise. check_publish_fields then errors when that disagrees with Cargo.toml.

Solution

Set publish = false in release-plz.toml for the two packages that have a [[package]] entry and publish = false in their Cargo.toml:

  • protoc-gen-grpc-rust
  • grpc-rustls

grpc-rustls isn't in the current error, but it has the same setup and would fail next once protoc-gen-grpc-rust passes. The other unpublished crates (grpc-xds, grpc-google-cloud-auth, xds-test-util) have no [[package]] entry, so the check skips them.

Once this merges, release-plz should regenerate #2800.

…-plz

release-plz has failed on every push to master since #2955 with:

  Package `protoc-gen-grpc-rust` has `publish = false` or `publish = []`
  in the Cargo.toml, but it has `publish = true` in the release-plz
  configuration.

In release-plz 0.4.1, a package with its own `[[package]]` entry is
treated as `publish = true` unless the entry says otherwise, and the
check fails when that disagrees with Cargo.toml. Because the release job
fails, the release-pr job is skipped and the release PR stops updating.

Set `publish = false` for `protoc-gen-grpc-rust` and `grpc-rustls`, the
two packages that have a release-plz entry and `publish = false` in
Cargo.toml.
@LucioFranco
LucioFranco merged commit e24a5a6 into master Oct 26, 2026
53 of 54 checks passed
@LucioFranco
LucioFranco deleted the chore/release-plz-publish-config branch October 26, 2026 23:18
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