1
0
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:
Rahul Patel 2020-03-31 12:02:56 -07:00 committed by GitHub
parent 1f6ffa9ed7
commit c85f46389f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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