Skip to content

Commit

Permalink
fix pre_release.sh to update version in sdk/opentelemetry.go (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
rghetia authored Mar 31, 2020
1 parent 1f6ffa9 commit c85f463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pre_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c85f463

Please sign in to comment.