mirror of
https://github.com/redis/go-redis.git
synced 2025-10-20 09:52:25 +03:00
chore(release): Update the rest of the versions (#3513)
* chore(release): Update the rest of the versions * improved tag script
This commit is contained in:
@@ -5,7 +5,7 @@ go 1.18
|
|||||||
replace github.com/redis/go-redis/v9 => ../..
|
replace github.com/redis/go-redis/v9 => ../..
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/redis/go-redis/v9 v9.13.0
|
github.com/redis/go-redis/v9 v9.14.0
|
||||||
go.uber.org/zap v1.24.0
|
go.uber.org/zap v1.24.0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@ replace github.com/redis/go-redis/extra/redisotel/v9 => ../../extra/redisotel
|
|||||||
replace github.com/redis/go-redis/extra/rediscmd/v9 => ../../extra/rediscmd
|
replace github.com/redis/go-redis/extra/rediscmd/v9 => ../../extra/rediscmd
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/redis/go-redis/extra/redisotel/v9 v9.13.0
|
github.com/redis/go-redis/extra/redisotel/v9 v9.14.0
|
||||||
github.com/redis/go-redis/v9 v9.14.0
|
github.com/redis/go-redis/v9 v9.14.0
|
||||||
github.com/uptrace/uptrace-go v1.21.0
|
github.com/uptrace/uptrace-go v1.21.0
|
||||||
go.opentelemetry.io/otel v1.22.0
|
go.opentelemetry.io/otel v1.22.0
|
||||||
@@ -25,7 +25,7 @@ require (
|
|||||||
github.com/go-logr/stdr v1.2.2 // indirect
|
github.com/go-logr/stdr v1.2.2 // indirect
|
||||||
github.com/golang/protobuf v1.5.3 // indirect
|
github.com/golang/protobuf v1.5.3 // indirect
|
||||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 // indirect
|
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 // indirect
|
||||||
github.com/redis/go-redis/extra/rediscmd/v9 v9.13.0 // indirect
|
github.com/redis/go-redis/extra/rediscmd/v9 v9.14.0 // indirect
|
||||||
go.opentelemetry.io/contrib/instrumentation/runtime v0.46.1 // indirect
|
go.opentelemetry.io/contrib/instrumentation/runtime v0.46.1 // indirect
|
||||||
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.44.0 // indirect
|
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.44.0 // indirect
|
||||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0 // indirect
|
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0 // indirect
|
||||||
|
@@ -7,7 +7,7 @@ replace github.com/redis/go-redis/v9 => ../..
|
|||||||
replace github.com/redis/go-redis/extra/rediscmd/v9 => ../rediscmd
|
replace github.com/redis/go-redis/extra/rediscmd/v9 => ../rediscmd
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/redis/go-redis/extra/rediscmd/v9 v9.13.0
|
github.com/redis/go-redis/extra/rediscmd/v9 v9.14.0
|
||||||
github.com/redis/go-redis/v9 v9.14.0
|
github.com/redis/go-redis/v9 v9.14.0
|
||||||
go.opencensus.io v0.24.0
|
go.opencensus.io v0.24.0
|
||||||
)
|
)
|
||||||
|
@@ -7,7 +7,7 @@ replace github.com/redis/go-redis/v9 => ../..
|
|||||||
replace github.com/redis/go-redis/extra/rediscmd/v9 => ../rediscmd
|
replace github.com/redis/go-redis/extra/rediscmd/v9 => ../rediscmd
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/redis/go-redis/extra/rediscmd/v9 v9.13.0
|
github.com/redis/go-redis/extra/rediscmd/v9 v9.14.0
|
||||||
github.com/redis/go-redis/v9 v9.14.0
|
github.com/redis/go-redis/v9 v9.14.0
|
||||||
go.opentelemetry.io/otel v1.22.0
|
go.opentelemetry.io/otel v1.22.0
|
||||||
go.opentelemetry.io/otel/metric v1.22.0
|
go.opentelemetry.io/otel/metric v1.22.0
|
||||||
|
@@ -2,22 +2,45 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
DRY_RUN=1
|
||||||
|
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
echo "Error: Tag version is required"
|
||||||
|
help
|
||||||
|
fi
|
||||||
|
|
||||||
|
TAG=$1
|
||||||
|
shift
|
||||||
|
|
||||||
|
while getopts "t" opt; do
|
||||||
|
case $opt in
|
||||||
|
t)
|
||||||
|
DRY_RUN=0
|
||||||
|
;;
|
||||||
|
\?)
|
||||||
|
echo "Invalid option: -$OPTARG" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
help() {
|
help() {
|
||||||
cat <<- EOF
|
cat <<- EOF
|
||||||
Usage: TAG=tag $0
|
Usage: $0 TAGVERSION [-t]
|
||||||
|
|
||||||
Creates git tags for public Go packages.
|
Creates git tags for public Go packages.
|
||||||
|
|
||||||
VARIABLES:
|
ARGUMENTS:
|
||||||
TAG git tag, for example, v1.0.0
|
TAGVERSION Tag version to create, for example v1.0.0
|
||||||
|
|
||||||
|
OPTIONS:
|
||||||
|
-t Execute git commands (default: dry run)
|
||||||
EOF
|
EOF
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -z "$TAG" ]
|
if [ "$DRY_RUN" -eq 1 ]; then
|
||||||
then
|
echo "Running in dry-run mode"
|
||||||
printf "TAG env var is required\n\n";
|
|
||||||
help
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -Fq "\"${TAG#v}\"" version.go
|
if ! grep -Fq "\"${TAG#v}\"" version.go
|
||||||
@@ -31,12 +54,21 @@ PACKAGE_DIRS=$(find . -mindepth 2 -type f -name 'go.mod' -exec dirname {} \; \
|
|||||||
| sed 's/^\.\///' \
|
| sed 's/^\.\///' \
|
||||||
| sort)
|
| sort)
|
||||||
|
|
||||||
git tag ${TAG}
|
|
||||||
git push origin ${TAG}
|
execute_git_command() {
|
||||||
|
if [ "$DRY_RUN" -eq 0 ]; then
|
||||||
|
"$@"
|
||||||
|
else
|
||||||
|
echo "DRY-RUN: Would execute: $@"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
execute_git_command git tag ${TAG}
|
||||||
|
execute_git_command git push origin ${TAG}
|
||||||
|
|
||||||
for dir in $PACKAGE_DIRS
|
for dir in $PACKAGE_DIRS
|
||||||
do
|
do
|
||||||
printf "tagging ${dir}/${TAG}\n"
|
printf "tagging ${dir}/${TAG}\n"
|
||||||
git tag ${dir}/${TAG}
|
execute_git_command git tag ${dir}/${TAG}
|
||||||
git push origin ${dir}/${TAG}
|
execute_git_command git push origin ${dir}/${TAG}
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user