Merge pull request #1240 from hashicorp/sethvargo/link_warnings
Fix link warnings
This commit is contained in:
commit
6b8438f040
|
@ -46,7 +46,7 @@ go get \
|
||||||
# Build!
|
# Build!
|
||||||
echo "--> Building..."
|
echo "--> Building..."
|
||||||
go build \
|
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 \
|
-v \
|
||||||
-o bin/consul${EXTENSION}
|
-o bin/consul${EXTENSION}
|
||||||
cp bin/consul${EXTENSION} "${GOPATHSINGLE}/bin"
|
cp bin/consul${EXTENSION} "${GOPATHSINGLE}/bin"
|
||||||
|
|
|
@ -35,7 +35,7 @@ go get .\...
|
||||||
:: Build!
|
:: Build!
|
||||||
echo --^> Building...
|
echo --^> Building...
|
||||||
go build^
|
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^
|
-v^
|
||||||
-o bin\consul.exe .
|
-o bin\consul.exe .
|
||||||
if errorlevel 1 exit /B 1
|
if errorlevel 1 exit /B 1
|
||||||
|
|
Loading…
Reference in New Issue