This repository was archived by the owner on May 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +146
-126
lines changed
Expand file tree Collapse file tree 6 files changed +146
-126
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ vendor/
2424out
2525xxx
2626yyy
27-
27+ .idea
2828# golang output binary directory
2929bin
3030
Original file line number Diff line number Diff line change @@ -10,9 +10,13 @@ GO_VET=go vet
1010GO_IMPORTS =goimports -w
1111GO_ERRCHECK =errcheck -asserts -ignore '[FS]?[Pp]rint*'
1212BINARIES =confluence
13+ COMMIT =` git rev-parse --short HEAD `
14+ VERSION =` git describe --tags --always | cut -d- -f1 `
15+ LDFLAGS =-ldflags "-s -w -extldflags '-static' -X github.com/LF-Engineering/insights-connector-confluence/build.GitCommit=$(COMMIT ) \
16+ -X github.com/LF-Engineering/insights-connector-confluence/build.Version=$(VERSION ) "
1317all : check ${BINARIES}
1418confluence : ${GO_BIN_FILES}
15- ${GO_ENV} ${GO_BUILD} -o confluence ${GO_BIN_FILES}
19+ ${GO_ENV} ${GO_BUILD} -o confluence ${LDFLAGS} ${ GO_BIN_FILES}
1620
1721fmt : ${GO_BIN_FILES}
1822 ${GO_FMT} ${GO_BIN_FILES}
Original file line number Diff line number Diff line change 1+ package build
2+
3+ var (
4+ // Version is component version
5+ Version = "latest"
6+ // GitCommit is commit hash associated with the version
7+ GitCommit = "HEAD"
8+ AppName = "insights-connector-confluence"
9+ )
You can’t perform that action at this time.
0 commit comments