fix Makefile paths for Go Modules
This commit is contained in:
parent
a40322d2d8
commit
3c6fc334ad
14
Makefile
14
Makefile
@ -20,17 +20,17 @@ image-magneticow:
|
|||||||
image: image-magneticod image-magneticow
|
image: image-magneticod image-magneticow
|
||||||
|
|
||||||
vet:
|
vet:
|
||||||
go vet github.com/boramalper/magnetico/...
|
go vet ./...
|
||||||
|
|
||||||
staticcheck:
|
staticcheck:
|
||||||
staticcheck github.com/boramalper/magnetico/...
|
staticcheck ./...
|
||||||
|
|
||||||
test:
|
test:
|
||||||
go test github.com/boramalper/magnetico/...
|
go test ./...
|
||||||
|
|
||||||
format:
|
format:
|
||||||
gofmt -w ${GOPATH}/src/github.com/boramalper/magnetico/cmd/
|
gofmt -w ./cmd/
|
||||||
gofmt -w ${GOPATH}/src/github.com/boramalper/magnetico/pkg/
|
gofmt -w ./pkg/
|
||||||
|
|
||||||
# Formatting Errors
|
# Formatting Errors
|
||||||
# Since gofmt returns zero even if there are files to be formatted, we use:
|
# Since gofmt returns zero even if there are files to be formatted, we use:
|
||||||
@ -46,5 +46,5 @@ format:
|
|||||||
#
|
#
|
||||||
check-formatting: SHELL:=/bin/bash # HERE: this is setting the shell for check-formatting only
|
check-formatting: SHELL:=/bin/bash # HERE: this is setting the shell for check-formatting only
|
||||||
check-formatting:
|
check-formatting:
|
||||||
! gofmt -l ${GOPATH}/src/github.com/boramalper/magnetico/cmd/ 2>&1 | tee /dev/fd/2 | read
|
! gofmt -l ./cmd/ 2>&1 | tee /dev/fd/2 | read
|
||||||
! gofmt -l ${GOPATH}/src/github.com/boramalper/magnetico/pkg/ 2>&1 | tee /dev/fd/2 | read
|
! gofmt -l ./pkg/ 2>&1 | tee /dev/fd/2 | read
|
||||||
|
Loading…
Reference in New Issue
Block a user