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

fix: Rename Version fields which conflict with <sys/sysmacros.h> #362

Merged
merged 1 commit into from
Nov 1, 2022

Conversation

bkietz
Copy link
Contributor

@bkietz bkietz commented Oct 20, 2022

BREAKING CHANGE: renamed Version.{major -> major_number, minor -> minor_number}

BREAKING CHANGE: renamed Version.{patch -> patch_number} for consistency

@CLAassistant
Copy link

CLAassistant commented Oct 20, 2022

CLA assistant check
All committers have signed the CLA.

@bkietz
Copy link
Contributor Author

bkietz commented Oct 20, 2022

fixes #361

@westonpace
Copy link
Member

I don't think there has been widespread integration with the plan version feature yet so this is probably a good time to make this kind of change.

protocolbuffers/protobuf#4654 is probably related but it isn't clear to me if they are saying they aren't going to fix it or if it's already been fixed. What version of protoc are you using? Does using an updated version fix it?

I'm +1 on this change. I don't see much reason not to do it and, even if it can be avoided someway, it's probably best to reduce the number of things users may potentially have to work around.

@westonpace
Copy link
Member

Regarding the failures:

At the moment, I think we require both proper semantic messages (including "breaking change") in the both the PR title/description and the commits. Pretty much all PRs squash everything into one commit. I don't remember if that is required or not however. It may be possible to continue as long as each individual commit is properly formatted.

@bkietz
Copy link
Contributor Author

bkietz commented Oct 20, 2022

I don't see any reference to this in CHANGES.txt which does list similar fixes.

From protocolbuffers/protobuf#4654 there's one comment saying we just need to rename things. There's another comment claiming this is fixed, but that is from Apr 2020 -> circa version 3.12.0. I'm still seeing the issue

$ protoc --version
libprotoc 3.19.4

BREAKING CHANGE: renamed Version.{major -> major_number, minor -> minor_number}

BREAKING CHANGE: renamed Version.{patch -> patch_number} for consistency
Copy link
Member

@westonpace westonpace left a comment

Choose a reason for hiding this comment

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

Formally marking my +1 but since this is a breaking spec change we need 1 other approval.

Copy link
Contributor

@cpcloud cpcloud left a comment

Choose a reason for hiding this comment

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

Thanks!

@westonpace westonpace merged commit 4170bf1 into substrait-io:main Nov 1, 2022
mbrobbel added a commit to mbrobbel/substrait-validator that referenced this pull request Nov 2, 2022
mbrobbel added a commit to mbrobbel/substrait-validator that referenced this pull request Nov 2, 2022
@bkietz bkietz deleted the rename_version_fields branch November 4, 2022 13:55
mbrobbel added a commit to mbrobbel/substrait-validator that referenced this pull request Nov 21, 2022
jvanstraten pushed a commit to substrait-io/substrait-validator that referenced this pull request Nov 21, 2022
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.

4 participants