aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2023-09-09 14:55:52 -0700
committerEric Biggers <ebiggers@google.com>2023-09-09 14:59:15 -0700
commit164d65b5ab5377587196748ac485bdda027b3a48 (patch)
treedba7ea16eb331f4ac7d382cd73b8b3896e4063f1 /Makefile
parented87812bb4d1fb37c66671f3eb598ac6194bc35c (diff)
Stop using golang.org/x/lint
golint is not supported anymore. See https://github.com/golang/go/issues/38968. We already use both 'go vet' and 'staticcheck' which are maintained.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 0ffd1eb..2b91581 100644
--- a/Makefile
+++ b/Makefile
@@ -87,7 +87,7 @@ C_FILES := $(filter %.c %.h,$(FILES))
PROTO_FILES := $(filter %.proto,$(FILES))
###### Build, Formatting, and Linting Commands ######
-.PHONY: default all gen format lint clean
+.PHONY: default all gen format clean
default: $(BIN)/$(NAME) $(PAM_MODULE)
all: tools gen default format lint test
@@ -105,9 +105,8 @@ format: $(BIN)/goimports
goimports -w $(GO_NONGEN_FILES)
clang-format -i -style=Google $(C_FILES)
-lint: $(BIN)/golint $(BIN)/staticcheck $(BIN)/misspell
+lint: $(BIN)/staticcheck $(BIN)/misspell
go vet ./...
- go list ./... | xargs -L1 golint -set_exit_status
staticcheck ./...
misspell -source=text $(FILES)
shellcheck -s bash cmd/fscrypt/fscrypt_bash_completion
@@ -197,12 +196,10 @@ ifdef PAM_CONFIG_DIR
endif
#### Tool Building Commands ####
-TOOLS := $(addprefix $(BIN)/,protoc golint protoc-gen-go goimports staticcheck gocovmerge misspell)
+TOOLS := $(addprefix $(BIN)/,protoc protoc-gen-go goimports staticcheck gocovmerge misspell)
.PHONY: tools
tools: $(TOOLS)
-$(BIN)/golint:
- go build -o $@ golang.org/x/lint/golint
$(BIN)/protoc-gen-go:
go build -o $@ google.golang.org/protobuf/cmd/protoc-gen-go
$(BIN)/goimports: