Repository navigation
chore(ci): set publish = false for unpublished grpc crates in release-plz - #2963
Merged
Merged
Conversation
…-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.
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.
Motivation
release-plz has failed on every push to
mastersince #2955, so the release PR (#2800) hasn't been updated since Oct 22 and is missing #2962. Thereleasejob fails with:and the
release-prjob 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 aspublish = trueunless the entry says otherwise.check_publish_fieldsthen errors when that disagrees withCargo.toml.Solution
Set
publish = falseinrelease-plz.tomlfor the two packages that have a[[package]]entry andpublish = falsein theirCargo.toml:protoc-gen-grpc-rustgrpc-rustlsgrpc-rustlsisn't in the current error, but it has the same setup and would fail next onceprotoc-gen-grpc-rustpasses. 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.