mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-14 01:04:14 +00:00
Run vet when building
This commit is contained in:
parent
647165ab89
commit
b3d19bd5cc
2
build.sh
2
build.sh
@ -11,6 +11,8 @@ host=${host%%.*}
|
|||||||
ldflags="-w -X main.Version $version -X main.BuildStamp $date -X main.BuildUser $user -X main.BuildHost $host"
|
ldflags="-w -X main.Version $version -X main.BuildStamp $date -X main.BuildUser $user -X main.BuildHost $host"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
go vet ./... || exit 1
|
||||||
|
|
||||||
if command -v godep >/dev/null ; then
|
if command -v godep >/dev/null ; then
|
||||||
godep=godep
|
godep=godep
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user