Skip to content

Commit 7e7db1c

Browse files
Release fix: Updated git tag command to use "taggerdate" (#1046)
1 parent bae6f25 commit 7e7db1c

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ COVERAGE=coverage.out
55

66
MCLI_SOURCE_FILES?=./cmd/mongocli
77
MCLI_BINARY_NAME=mongocli
8-
MCLI_VERSION?=$(shell git tag --list 'mongocli/v*' --sort=committerdate | tail -1 | cut -d "v" -f 2 | xargs -I % sh -c 'echo %-next' )
8+
MCLI_VERSION?=$(shell git tag --list 'mongocli/v*' --sort=taggerdate | tail -1 | cut -d "v" -f 2 | xargs -I % sh -c 'echo %-next' )
99
MCLI_GIT_SHA?=$(shell git rev-parse HEAD)
1010
MCLI_DESTINATION=./bin/$(MCLI_BINARY_NAME)
1111
MCLI_INSTALL_PATH="${GOPATH}/bin/$(MCLI_BINARY_NAME)"
1212
MCLI_E2E_BINARY?=../../bin/${MCLI_BINARY_NAME}
1313

1414
ATLAS_SOURCE_FILES?=./cmd/atlas
1515
ATLAS_BINARY_NAME=atlas
16-
ATLAS_VERSION?=$(shell git tag --list 'atlascli/v*' --sort=committerdate | tail -1 | cut -d "v" -f 2 | xargs -I % sh -c 'echo %-next' )
16+
ATLAS_VERSION?=$(shell git tag --list 'atlascli/v*' --sort=taggerdate | tail -1 | cut -d "v" -f 2 | xargs -I % sh -c 'echo %-next' )
1717
ATLAS_DESTINATION=./bin/$(ATLAS_BINARY_NAME)
1818
ATLAS_INSTALL_PATH="${GOPATH}/bin/$(ATLAS_BINARY_NAME)"
1919

build/package/docker/docker-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
set -Eeou pipefail
1818

19-
VERSION="$(git tag --list "${tool_name:?}/v*" --sort=committerdate | tail -1 | cut -d "v" -f 2)"
19+
VERSION="$(git tag --list "${tool_name:?}/v*" --sort=taggerdate | tail -1 | cut -d "v" -f 2)"
2020
if [[ -z "${VERSION}" ]]; then
2121
VERSION="$(git describe --abbrev=0 | cut -d "v" -f 2)"
2222
fi

build/package/download-msi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
set -Eeou pipefail
1717

18-
VERSION="$(git tag --list "${TOOL_NAME:?}/v*" --sort=committerdate | tail -1 | cut -d "v" -f 2)"
18+
VERSION="$(git tag --list "${TOOL_NAME:?}/v*" --sort=taggerdate | tail -1 | cut -d "v" -f 2)"
1919
if [[ -z "${VERSION}" ]]; then
2020
VERSION="$(git describe --abbrev=0 | cut -d "v" -f 2)"
2121
fi

build/package/generate-download-archive-manifest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616
set -Eeou pipefail
1717

18-
VERSION="$(git tag --list "${TOOL_NAME}/v*" --sort=committerdate | tail -1 | cut -d "v" -f 2)"
18+
VERSION="$(git tag --list "${TOOL_NAME}/v*" --sort=taggerdate | tail -1 | cut -d "v" -f 2)"
1919

2020
if [[ -z "${VERSION}" ]]; then
2121
VERSION=$(git describe | cut -d "v" -f 2)

build/package/generate-msi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export CGO_ENABLED
2424
go-msi check-env
2525

2626

27-
VERSION="$(git tag --list "${TOOL_NAME:?}/v*" --sort=committerdate | tail -1 | cut -d "v" -f 2)"
27+
VERSION="$(git tag --list "${TOOL_NAME:?}/v*" --sort=taggerdate | tail -1 | cut -d "v" -f 2)"
2828
if [[ -z "${VERSION}" ]]; then
2929
VERSION="$(git describe --abbrev=0 | cut -d "v" -f 2)"
3030
fi

build/package/package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export MACOS_NOTARY_SECRET=${notary_service_secret:?}
2424
export GORELEASER_KEY=${goreleaser_key:?}
2525
export VERSION_GIT
2626

27-
VERSION_GIT="$(git tag --list "${tool_name:?}/v*" --sort=committerdate | tail -1 | cut -d "v" -f 2)"
27+
VERSION_GIT="$(git tag --list "${tool_name:?}/v*" --sort=taggerdate | tail -1 | cut -d "v" -f 2)"
2828

2929
if [[ -z "${VERSION_GIT}" ]]; then
3030
VERSION_GIT=$(git describe --abbrev=0 | cut -d "v" -f 2)

build/package/rename-pkg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
set -Eeou pipefail
1818

1919

20-
VERSION="$(git tag --list "${tool_name:?}/v*" --sort=committerdate | tail -1 | cut -d "v" -f 2)"
20+
VERSION="$(git tag --list "${tool_name:?}/v*" --sort=taggerdate | tail -1 | cut -d "v" -f 2)"
2121
if [[ -z "${VERSION}" ]]; then
2222
VERSION="$(git describe --abbrev=0 | cut -d "v" -f 2)"
2323
fi

build/package/send-slack-notification.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
set -Eeou pipefail
1717

18-
VERSION="$(git tag --list "${TOOL_NAME:?}/v*" --sort=committerdate | tail -1 | cut -d "v" -f 2)"
18+
VERSION="$(git tag --list "${TOOL_NAME:?}/v*" --sort=taggerdate | tail -1 | cut -d "v" -f 2)"
1919
if [[ -z "${VERSION}" ]]; then
2020
VERSION="$(git describe --abbrev=0 | cut -d "v" -f 2)"
2121
fi

0 commit comments

Comments
 (0)