gopath fixes
This commit is contained in:
parent
dea74a6595
commit
719919b3d8
@ -7,7 +7,7 @@ sources:
|
|||||||
- https://git.sr.ht/~motiejus/undocker
|
- https://git.sr.ht/~motiejus/undocker
|
||||||
tasks:
|
tasks:
|
||||||
- setup: |
|
- setup: |
|
||||||
GOPATH=/usr/local go get honnef.co/go/tools/cmd/staticcheck
|
go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||||
- test: |
|
- test: |
|
||||||
make -C undocker coverage.html
|
make -C undocker coverage.html
|
||||||
- lint: |
|
- lint: |
|
||||||
|
3
Makefile
3
Makefile
@ -1,4 +1,5 @@
|
|||||||
GODEPS = $(shell git ls-files '*.go' go.mod go.sum)
|
GODEPS = $(shell git ls-files '*.go' go.mod go.sum)
|
||||||
|
GOBIN = $(shell go env GOPATH)/bin/
|
||||||
|
|
||||||
undocker: $(GODEPS)
|
undocker: $(GODEPS)
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
|
||||||
@ -9,7 +10,7 @@ test:
|
|||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint:
|
lint:
|
||||||
staticcheck -f stylish ./...
|
$(GOBIN)staticcheck -f stylish ./...
|
||||||
go vet ./...
|
go vet ./...
|
||||||
|
|
||||||
.INTERMEDIATE: coverage.out
|
.INTERMEDIATE: coverage.out
|
||||||
|
Loading…
Reference in New Issue
Block a user