mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-01-01 22:09:57 +02:00
fix pre_release.sh to update version in sdk/opentelemetry.go (#607)
This commit is contained in:
parent
1f6ffa9ed7
commit
c85f46389f
@ -70,7 +70,7 @@ fi
|
||||
|
||||
# Update sdk/opentelemetry.go
|
||||
cp ./sdk/opentelemetry.go ./sdk/opentelemetry.go.bak
|
||||
sed 's/\(return "\)[0-9]\+\.[0-9]\+\.[0-9]\+/\1'"${OTEL_VERSION}"'/' ./sdk/opentelemetry.go.bak >./sdk/opentelemetry.go
|
||||
sed "s/\(return \"\)[0-9]*\.[0-9]*\.[0-9]*\"/\1${OTEL_VERSION}\"/" ./sdk/opentelemetry.go.bak >./sdk/opentelemetry.go
|
||||
rm -f ./sdk/opentelemetry.go.bak
|
||||
|
||||
# Update go.mod
|
||||
|
Loading…
Reference in New Issue
Block a user