-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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: set version during build process for op-node,batcher,proposer #10087
Conversation
WalkthroughThe recent update simplifies version determination across Changes
Recent Review StatusConfiguration used: CodeRabbit UI Files selected for processing (3)
Files skipped from review as they are similar to previous changes (3)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
I don't think that we want to look back for the tag as anything during the build would have the tag. Ideally it'd see if the current commit is the tag & if so, would use that. When we build docker images for our release process, we used to override the version to the commit at the build step (i.e. before make got invoked). This is nice though because it means that local builds on the release commit will get tagged correctly |
Testing this on Update: It seems that OSX's version of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good. TY for fixing it
Description
Dynamically set the
VERSION
within the Makefile by looking up the latestgit tag
that points-at the commit hash on the current branch. If no tags are found, theVERSION
string will be set tountagged
. If multiple tags are found, prioritize the release tag, if one exists, otherwise use the latest tag suffixed with-rc.X
.Previously the
VERSION
was hardcoded to "v0.0.0".Tests
No tests are currently part of this PR. I manually tested the Makefiles. Please let me know if there is a standard way to test Makefile commands.
Manual test procedure:
Metadata
op-geth
to make the same changeSummary by CodeRabbit
Summary by CodeRabbit