fix Makefile paths for Go Modules

This commit is contained in:
Bora M. Alper 2019-05-19 17:22:22 +01:00
parent a40322d2d8
commit 3c6fc334ad
No known key found for this signature in database
GPG Key ID: 8F1A9504E1BD114D

View File

@ -20,17 +20,17 @@ image-magneticow:
image: image-magneticod image-magneticow
vet:
go vet github.com/boramalper/magnetico/...
go vet ./...
staticcheck:
staticcheck github.com/boramalper/magnetico/...
staticcheck ./...
test:
go test github.com/boramalper/magnetico/...
go test ./...
format:
gofmt -w ${GOPATH}/src/github.com/boramalper/magnetico/cmd/
gofmt -w ${GOPATH}/src/github.com/boramalper/magnetico/pkg/
gofmt -w ./cmd/
gofmt -w ./pkg/
# Formatting Errors
# 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:
! gofmt -l ${GOPATH}/src/github.com/boramalper/magnetico/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 ./cmd/ 2>&1 | tee /dev/fd/2 | read
! gofmt -l ./pkg/ 2>&1 | tee /dev/fd/2 | read