SHELL := /usr/local/bin/oksh export PATH := $(PATH) .PHONY: all fmt lint all: fmt lint test .PHONY: debug debug: @echo "PATH: $(PATH)" @echo "GOPATH: $(shell go env GOPATH)" @which go @which gofumpt @which gci @which golangci-lint # Test test: go test -v ./... # Format code fmt: gofumpt -l -w . gci write . # Run linter lint: fmt golangci-lint run