1 Star 0 Fork 4

paul008/choerodon-agent

forked from Choerodon/choerodon-agent 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
versioning.mk 838 Bytes
一键复制 编辑 原始数据 按行查看 历史
crockitwood 提交于 2018-10-31 15:32 . [IMP]imp cluster agent
GIT_COMMIT = $(shell git rev-parse HEAD)
GIT_SHA = $(shell git rev-parse --short HEAD)
GIT_TAG = $(shell git describe --tags --abbrev=0 --exact-match 2>/dev/null)
GIT_DIRTY = $(shell test -n "`git status --porcelain`" && echo "dirty" || echo "clean")
ifdef VERSION
BINARY_VERSION = $(VERSION)
endif
BINARY_VERSION ?= $(GIT_TAG)
ifneq ($(BINARY_VERSION),)
LDFLAGS += -X github.com/choerodon/choerodon-cluster-agent/pkg/version.GitVersion=${BINARY_VERSION}
endif
LDFLAGS += -X github.com/choerodon/choerodon-cluster-agent/pkg/version.GitCommit=${GIT_COMMIT}
LDFLAGS += -X github.com/choerodon/choerodon-cluster-agent/pkg/version.GitTreeState=${GIT_DIRTY}
info:
@echo "Version: ${VERSION}"
@echo "Git Tag: ${GIT_TAG}"
@echo "Git Commit: ${GIT_COMMIT}"
@echo "Git Tree State: ${GIT_DIRTY}"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/paul008/choerodon-agent.git
git@gitee.com:paul008/choerodon-agent.git
paul008
choerodon-agent
choerodon-agent
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385