Skip to content

Commit f041ef5

Browse files
dlorenctekton-robot
authored andcommitted
Remove the gosec Makefile target.
This is not managed by golangci-lint, which does it's own verisoning. The version in golangci-lint likely won't match this version, so they're most likely mismatched anyway. Given that this Makefile target isn't used, we should drop it in favor of `make golangci-lint` for consistency. Signed-off-by: Dan Lorenc <[email protected]>
1 parent 7e52ce7 commit f041ef5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Makefile

-9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ TESTPKGS = $(shell env GO111MODULE=on $(GO) list -f \
99
BIN = $(CURDIR)/.bin
1010

1111
GOLANGCI_VERSION = v1.42.0
12-
GOSEC_VERSION = v2.4.0
1312

1413
GO = go
1514
TIMEOUT_UNIT = 5m
@@ -171,14 +170,6 @@ $(BIN)/golangci-lint: ; $(info $(M) getting golangci-lint $(GOLANGCI_VERSION))
171170
golangci-lint: | $(GOLANGCILINT) ; $(info $(M) running golangci-lint…) @ ## Run golangci-lint
172171
$Q $(GOLANGCILINT) run --modules-download-mode=vendor --max-issues-per-linter=0 --max-same-issues=0 --deadline 5m
173172

174-
GOSEC = $(BIN)/gosec
175-
$(BIN)/gosec: ; $(info $(M) getting gosec $(GOSEC_VERSION))
176-
@curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $(BIN) $(GOSEC_VERSION)
177-
178-
.PHONY: gosec
179-
gosec: | $(GOSEC) ; $(info $(M) running gosec…)
180-
$Q $(GOSEC) ./...
181-
182173
GOIMPORTS = $(BIN)/goimports
183174
$(BIN)/goimports: PACKAGE=golang.org/x/tools/cmd/goimports
184175

0 commit comments

Comments
 (0)