Skip to content

Conversation

@vitalybuka
Copy link
Collaborator

@vitalybuka vitalybuka commented Feb 25, 2025

To pick constant to check I use:

  1. checkout to the first commit where feature was available
  2. find value of GOOGLE_PROTOBUF_VERSION, call it V
  3. Use strict (GOOGLE_PROTOBUF_VERSION > V), as
    there are commits where GOOGLE_PROTOBUF_VERSION == V,
    but features is not there yet.

To check the feature:
1. checkout to the first commit where feature was available
2. find value of `GOOGLE_PROTOBUF_VERSION`, call it `V`
3. Use strict `(GOOGLE_PROTOBUF_VERSION > V)`, as
   there are commits where `GOOGLE_PROTOBUF_VERSION == V`,
   but features is not there yet.
Copy link
Contributor

@hartwork hartwork left a comment

Choose a reason for hiding this comment

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

@vitalybuka this seems mistaken, I used git tag --contains and checked out those to avoid the very problem you're describing. Any value at non-release commits will be misleading and has potential for false positive matches. Please do not do this 🙏

@vitalybuka
Copy link
Collaborator Author

abandoning

@vitalybuka vitalybuka closed this Feb 25, 2025
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.

2 participants