Skip to content

Switch to git clone for geth versioning #101

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

Merged
merged 1 commit into from
Aug 24, 2023
Merged

Conversation

mdehoog
Copy link
Contributor

@mdehoog mdehoog commented Aug 24, 2023

Fixes #75

#54 switched to downloading tar.gz files from Github. Unfortunately this strips the .git information from the download, which breaks go-ethereum's build/ci.go ability to read commit and tag information.

cd op-node && \
RUN git clone $REPO --branch op-node/$VERSION --single-branch . && \
git switch -c branch-$VERSION && \
bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we could potentially leave this as is, but i prefer the consistency, and op-node may switch to dynamic versioning based on tags in the future

Copy link
Contributor

@roberto-bayardo roberto-bayardo left a comment

Choose a reason for hiding this comment

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

nice not to have to mess with the checksums too.

@cb-heimdall
Copy link
Collaborator

Review Error for roberto-bayardo @ 2023-08-24 23:07:33 UTC
User failed mfa authentication, public email is not set on your github profile. see go/mfa-help

@mdehoog mdehoog merged commit 9dc53cf into main Aug 24, 2023
@mdehoog mdehoog deleted the michael/geth-versioning branch August 24, 2023 23:11
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.

Node version reporting as 0.1.0 although running 0.3.0
3 participants