Fix link warnings
This commit is contained in:
parent
b25797a808
commit
7c78568e72
|
@ -46,7 +46,7 @@ go get \
|
|||
# Build!
|
||||
echo "--> Building..."
|
||||
go build \
|
||||
-ldflags "${CGO_LDFLAGS} -X main.GitCommit ${GIT_COMMIT}${GIT_DIRTY} -X main.GitDescribe ${GIT_DESCRIBE}" \
|
||||
-ldflags "${CGO_LDFLAGS} -X main.GitCommit=${GIT_COMMIT}${GIT_DIRTY} -X main.GitDescribe=${GIT_DESCRIBE}" \
|
||||
-v \
|
||||
-o bin/consul${EXTENSION}
|
||||
cp bin/consul${EXTENSION} "${GOPATHSINGLE}/bin"
|
||||
|
|
|
@ -35,7 +35,7 @@ go get .\...
|
|||
:: Build!
|
||||
echo --^> Building...
|
||||
go build^
|
||||
-ldflags "-X main.GitCommit %_GIT_COMMIT%%_GIT_DIRTY% -X main.GitDescribe %_GIT_DESCRIBE%"^
|
||||
-ldflags "-X main.GitCommit=%_GIT_COMMIT%%_GIT_DIRTY% -X main.GitDescribe=%_GIT_DESCRIBE%"^
|
||||
-v^
|
||||
-o bin\consul.exe .
|
||||
if errorlevel 1 exit /B 1
|
||||
|
|
Loading…
Reference in New Issue