Skip to content

Release fix: Updated git tag command to use "taggerdate" #1046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ COVERAGE=coverage.out

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

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

Expand Down
2 changes: 1 addition & 1 deletion build/package/docker/docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

set -Eeou pipefail

VERSION="$(git tag --list "${tool_name:?}/v*" --sort=committerdate | tail -1 | cut -d "v" -f 2)"
VERSION="$(git tag --list "${tool_name:?}/v*" --sort=taggerdate | tail -1 | cut -d "v" -f 2)"
if [[ -z "${VERSION}" ]]; then
VERSION="$(git describe --abbrev=0 | cut -d "v" -f 2)"
fi
Expand Down
2 changes: 1 addition & 1 deletion build/package/download-msi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

set -Eeou pipefail

VERSION="$(git tag --list "${TOOL_NAME:?}/v*" --sort=committerdate | tail -1 | cut -d "v" -f 2)"
VERSION="$(git tag --list "${TOOL_NAME:?}/v*" --sort=taggerdate | tail -1 | cut -d "v" -f 2)"
if [[ -z "${VERSION}" ]]; then
VERSION="$(git describe --abbrev=0 | cut -d "v" -f 2)"
fi
Expand Down
2 changes: 1 addition & 1 deletion build/package/generate-download-archive-manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.
set -Eeou pipefail

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

if [[ -z "${VERSION}" ]]; then
VERSION=$(git describe | cut -d "v" -f 2)
Expand Down
2 changes: 1 addition & 1 deletion build/package/generate-msi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export CGO_ENABLED
go-msi check-env


VERSION="$(git tag --list "${TOOL_NAME:?}/v*" --sort=committerdate | tail -1 | cut -d "v" -f 2)"
VERSION="$(git tag --list "${TOOL_NAME:?}/v*" --sort=taggerdate | tail -1 | cut -d "v" -f 2)"
if [[ -z "${VERSION}" ]]; then
VERSION="$(git describe --abbrev=0 | cut -d "v" -f 2)"
fi
Expand Down
2 changes: 1 addition & 1 deletion build/package/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export MACOS_NOTARY_SECRET=${notary_service_secret:?}
export GORELEASER_KEY=${goreleaser_key:?}
export VERSION_GIT

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

if [[ -z "${VERSION_GIT}" ]]; then
VERSION_GIT=$(git describe --abbrev=0 | cut -d "v" -f 2)
Expand Down
2 changes: 1 addition & 1 deletion build/package/rename-pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
set -Eeou pipefail


VERSION="$(git tag --list "${tool_name:?}/v*" --sort=committerdate | tail -1 | cut -d "v" -f 2)"
VERSION="$(git tag --list "${tool_name:?}/v*" --sort=taggerdate | tail -1 | cut -d "v" -f 2)"
if [[ -z "${VERSION}" ]]; then
VERSION="$(git describe --abbrev=0 | cut -d "v" -f 2)"
fi
Expand Down
2 changes: 1 addition & 1 deletion build/package/send-slack-notification.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

set -Eeou pipefail

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