Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixup rust publishing #223

Merged
merged 2 commits into from
Feb 12, 2024
Merged

Conversation

woodruffw
Copy link
Member

This partially fixes the Rust publishing situation. A new complexity: because we have a proc-macro crate (sigstore-protobuf-specs-derive), we really have two packages that need publishing. But only the "main" one makes any sense to automate, since the proc-macro crate should (basically) never change, and certainly doesn't need to change on the same cadence.

So, here's what I propose:

  1. We merge this
  2. I'll manually publish a release of sigstore-protobuf-specs-derive v0.0.1
  3. The next automated release should work, since the proc-macro crate will be on crates.io

Signed-off-by: William Woodruff <[email protected]>
@woodruffw woodruffw self-assigned this Feb 12, 2024
@woodruffw woodruffw added the rust Rust bindings label Feb 12, 2024
Signed-off-by: William Woodruff <[email protected]>
@@ -18,7 +17,7 @@ prost = "0.12.3"
prost-reflect = { version = "0.12.0", features = ["serde", "derive"] }
serde = {version = "1.0", features = ["derive"]}
serde_json = "1.0"
derive = { path = "../derive" }
sigstore-protobuf-specs-derive = { version = "0.0.1", path = "../sigstore-protobuf-specs-derive" }
Copy link
Contributor

Choose a reason for hiding this comment

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

This would correctly resolve to sigstore-protobuf-specs-derive when it's published to crates.io, correct?

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct -- version is used when installed via cargo install, and path is used when installed via cargo build.

Copy link
Contributor

@tnytown tnytown left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Collaborator

@haydentherapper haydentherapper left a comment

Choose a reason for hiding this comment

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

Rubber stamping

@woodruffw woodruffw merged commit 0813796 into sigstore:main Feb 12, 2024
7 checks passed
@woodruffw woodruffw deleted the ww/publish-rust-fix branch February 12, 2024 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rust Rust bindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants