Skip to content

Commit 636215c

Browse files
authored
Fix Go make targets (#47)
* `go vet` needs all `Go` files at once; otherwise it can't find dependencies * `go get` will install packages automatically
1 parent 097b876 commit 636215c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

modules/go/Makefile.build

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ go/deps-build:
3232
## Install development dependencies
3333
go/deps-dev: $(GO)
3434
$(call assert-set,GO)
35-
$(GO) get -u -d -v "golang.org/x/lint/golint"
36-
$(GO) get -d -v github.com/mitchellh/gox
37-
$(GO) install -v github.com/mitchellh/gox
35+
$(GO) get -u -v golang.org/x/lint/golint
36+
$(GO) get -u -v github.com/mitchellh/gox
3837

3938
## Clean compiled binary
4039
go/clean:

modules/go/Makefile.style

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ go/lint: $(GO) go/vet
66
## Vet code
77
go/vet: $(GO)
88
$(call assert-set,GO)
9-
find . ! -path "*/vendor/*" ! -path "*/.glide/*" -type f -name '*.go' | xargs -n 1 $(GO) vet -v
9+
find . ! -path "*/vendor/*" ! -path "*/.glide/*" -type f -name '*.go' | xargs $(GO) vet -v
1010

1111
## Format code according to Golang convention
1212
go/fmt: $(GO)

0 commit comments

Comments
 (0)