Skip to content

Commit

Permalink
refactor(ci): delete the useless go.mod file in tools/check folder (#…
Browse files Browse the repository at this point in the history
…1303)

close #1304
  • Loading branch information
wuhuizuo authored Jun 12, 2024
1 parent 6fba4f8 commit f4220eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1,160 deletions.
17 changes: 4 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ fmt:
@echo "gofmt (simplify)"
@gofmt -s -l -w $(FILES) 2>&1 | $(FAIL_ON_STDOUT)

lint:tools/bin/revive
lint:
@echo "linting"
@tools/bin/revive -formatter friendly -config tools/check/revive.toml $(FILES)
$(GO) run github.com/mgechev/revive@v1.2.5 -formatter friendly -config tools/check/revive.toml $(FILES)

vet:
@echo "vet"
Expand All @@ -103,18 +103,9 @@ else
grep -F '<option' "$(TEST_DIR)/all_cov.html"
endif

check-static: tools/bin/golangci-lint
$(GO) mod vendor
tools/bin/golangci-lint run --timeout 7m $$($(PACKAGE_DIRECTORIES))
check-static:
$(GO) run github.com/golangci/golangci-lint/cmd/[email protected] run --timeout 7m

clean:
go clean -i ./...
rm -rf *.out

tools/bin/revive: tools/check/go.mod
cd tools/check; \
$(GO) build -o ../bin/revive github.com/mgechev/revive

tools/bin/golangci-lint: tools/check/go.mod
cd tools/check; \
GOBIN=$(CURDIR)/tools/bin $(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint
183 changes: 0 additions & 183 deletions tools/check/go.mod

This file was deleted.

Loading

0 comments on commit f4220eb

Please sign in to comment.