Ensure OPVersion is set correctly during make geth and during docker build. This was broken when checking out a specific, non-HEAD commit, which creates a "detached head" scenario. Also when a commit did not have an associated tag, the OPVersion was set to 0.1.0-unstable, which has now been changed to set OPVersion to untagged.
Tests
Manually tested the following scenarios
Detached head
git checkout 6aa2348118138a4f7021208ffaf8582d73169ba1
git tag --points-at 6aa2348118138a4f7021208ffaf8582d73169ba1
> v1.101311.0-rc.1
Ran make geth and got the following output (verified -ldflags were set correctly):
Started the container and verified the logged version looked correct (couldn't get rid of "v" before "untagged" without creating another diff with geth here:
INFO [04-11|20:24:43.806] Starting peer-to-peer node instance=Geth/vuntagged-db7c618b-20240409/linux-arm64/go1.21.9
Additional context
I do not have access to Circle CI so right now I am unable to verify that the $CIRCLE_TAG env var is set to the appropriate value here.
Description
Ensure
OPVersion
is set correctly duringmake geth
and duringdocker build
. This was broken when checking out a specific, non-HEAD commit, which creates a "detached head" scenario. Also when a commit did not have an associated tag, theOPVersion
was set to0.1.0-unstable
, which has now been changed to setOPVersion
tountagged
.Tests
Manually tested the following scenarios
Detached head
Ran
make geth
and got the following output (verified-ldflags
were set correctly):Created a docker image and checked its printed version
Got the following output (verified Version was set correctly)
Started the container and verified the logged version looked correct:
Untagged commit
Ran
make geth
and got the following output (verified-ldflags
were set correctly):Created a docker image and checked its printed version
Got the following output (verified Version was set correctly)
Started the container and verified the logged version looked correct (couldn't get rid of "v" before "untagged" without creating another diff with geth here:
Additional context
I do not have access to Circle CI so right now I am unable to verify that the
$CIRCLE_TAG
env var is set to the appropriate value here.Metadata