File tree Expand file tree Collapse file tree 2 files changed +0
-3
lines changed Expand file tree Collapse file tree 2 files changed +0
-3
lines changed Original file line number Diff line number Diff line change 1
1
before :
2
2
hooks :
3
3
- go mod tidy
4
- - export GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
5
4
- export GO_VERSION=$(go version | cut -d " " -f 3)
6
5
7
6
builds :
@@ -64,7 +63,6 @@ builds:
64
63
- -X 'github.com/appleboy/CodeGPT/version.Version={{.Version}}'
65
64
- -X 'github.com/appleboy/CodeGPT/version.BuildTime={{.Date}}'
66
65
- -X 'github.com/appleboy/CodeGPT/version.GitCommit={{.FullCommit}}'
67
- - -X 'github.com/appleboy/CodeGPT/version.GitBranch={{.Env.GIT_BRANCH}}'
68
66
- -X 'github.com/appleboy/CodeGPT/version.GoVersion={{.Env.GO_VERSION}}'
69
67
- -X 'github.com/appleboy/CodeGPT/version.BuildOS={{.Os}}'
70
68
- -X 'github.com/appleboy/CodeGPT/version.BuildArch={{.Arch}}'
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ COMMIT ?= $(shell git rev-parse --short HEAD)
19
19
LDFLAGS ?= -X 'github.com/appleboy/CodeGPT/version.Version=$(VERSION ) ' \
20
20
-X 'github.com/appleboy/CodeGPT/version.BuildTime=$(shell date +% Y-% m-% dT% H:% M:% S) ' \
21
21
-X 'github.com/appleboy/CodeGPT/version.GitCommit=$(shell git rev-parse HEAD) ' \
22
- -X 'github.com/appleboy/CodeGPT/version.GitBranch=$(shell git rev-parse --abbrev-ref HEAD) ' \
23
22
-X 'github.com/appleboy/CodeGPT/version.GoVersion=$(shell $(GO ) version | cut -d " " -f 3) ' \
24
23
-X 'github.com/appleboy/CodeGPT/version.BuildOS=$(shell $(GO ) env GOOS) ' \
25
24
-X 'github.com/appleboy/CodeGPT/version.BuildArch=$(shell $(GO ) env GOARCH) '
You can’t perform that action at this time.
0 commit comments