File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ dependencies:
2929
3030build :
3131 $(info ******************** Compiling binary to ./bin ******************** )
32- go build -ldflags=" -X 'main.cliVersion=$$ (git describe --tags)' -X 'main.gitCommit=$$ (git rev-parse HEAD)' -X 'main.buildDate=$$ (date -u +%Y-%m-%dT%H:%M:%SZ)' -X 'main.gitDescription=$$ (git log -1 --pretty=%B)'" -o ${BINARY_NAME} ${MAIN_PACKAGE_PATH}
32+ go build -ldflags=" -X 'main.cliVersion=$$ (git describe --tags)' -X 'main.gitCommit=$$ (git rev-parse HEAD)' -X 'main.buildDate=$$ (date -u +%Y-%m-%dT%H:%M:%SZ)' -X 'main.gitDescription=$$ (git log -1 --pretty=%B | tr \' _ )'" -o ${BINARY_NAME} ${MAIN_PACKAGE_PATH}
3333
3434release-snapshot :
3535 goreleaser release --snapshot --rm-dist
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ the source code.
3737 ```
38383 . ** Build the Application** : Run the following command to compile Gatecheck with appropriate load flags:
3939 ```
40- go build -ldflags="-X 'main.cliVersion=$(git describe --tags)' -X 'main.gitCommit=$(git rev-parse HEAD)' -X 'main.buildDate=$(date -u +%Y-%m-%dT%H:%M:%SZ)' -X 'main.gitDescription=$(git log -1 --pretty=%B)'" -o ./bin ./cmd/gatecheck
40+ go build -ldflags="-X 'main.cliVersion=$(git describe --tags)' -X 'main.gitCommit=$(git rev-parse HEAD)' -X 'main.buildDate=$(date -u +%Y-%m-%dT%H:%M:%SZ)' -X 'main.gitDescription=$(git log -1 --pretty=%B | tr \' _ )'" -o ./bin ./cmd/gatecheck
4141 ```
42424 . ** Move the Binary to a Bin Directory** (as described in Option 1, step 3).
4343
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ INSTALL_DIR := env('INSTALL_DIR', '/usr/local/bin')
33# build gatecheck binary
44build :
55 mkdir -p bin
6- go build -ldflags=" -X 'main.cliVersion=$(git describe --tags)' -X 'main.gitCommit=$(git rev-parse HEAD)' -X 'main.buildDate=$(date -u +%Y-%m-%dT%H:%M:%SZ)' -X 'main.gitDescription=$(git log -1 --pretty=%B)'" -o ./ bin ./ cmd/ gatecheck
6+ go build -ldflags=" -X 'main.cliVersion=$(git describe --tags)' -X 'main.gitCommit=$(git rev-parse HEAD)' -X 'main.buildDate=$(date -u +%Y-%m-%dT%H:%M:%SZ)' -X 'main.gitDescription=$(git log -1 --pretty=%B | tr \' _ )'" -o ./ bin ./ cmd/ gatecheck
77
88# build and install binary
99install : build
You can’t perform that action at this time.
0 commit comments