Skip to content

Commit

Permalink
cleanup: delete unnecessary shell script
Browse files Browse the repository at this point in the history
Signed-off-by: jwcesign <[email protected]>
  • Loading branch information
jwcesign committed Nov 23, 2023
1 parent 954f807 commit 3132a5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GOOS ?= $(shell go env GOOS)
GOARCH ?= $(shell go env GOARCH)
VERSION ?= '$(shell hack/version.sh)'
VERSION ?= '$(git describe --tags --dirty)'

# Images management
REGISTRY?="docker.io/karmada"
Expand Down Expand Up @@ -110,7 +110,7 @@ GOTEST=go test

.PHONY: install_gotest
install_gotest:
ifdef COLOR_GOTEST_ENABLED
ifdef COLOR_GOTEST_ENABLED
go install ${COLOR_GOTEST_REGISTRY}@${COLOR_GOTEST_VERSION}
GOTEST=gotest
endif
Expand Down
6 changes: 1 addition & 5 deletions hack/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -668,13 +668,9 @@ function util::get_macos_ipaddress() {
fi
}

function util::get_version() {
git describe --tags --dirty
}

function util::version_ldflags() {
# Git information
GIT_VERSION=$(util::get_version)
GIT_VERSION=$(git describe --tags --dirty)
GIT_COMMIT_HASH=$(git rev-parse HEAD)
if git_status=$(git status --porcelain 2>/dev/null) && [[ -z ${git_status} ]]; then
GIT_TREESTATE="clean"
Expand Down
10 changes: 0 additions & 10 deletions hack/version.sh

This file was deleted.

0 comments on commit 3132a5e

Please sign in to comment.