use go run

This commit is contained in:
silverwind 2024-04-27 12:19:02 +02:00
parent aed16ec656
commit e86f46ba82
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443
1 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest
GO_LICENSES_PACKAGE ?= github.com/google/go-licenses@v1
GOVULNCHECK_PACKAGE ?= golang.org/x/vuln/cmd/govulncheck@v1
ACTIONLINT_PACKAGE ?= github.com/rhysd/actionlint/cmd/actionlint@v1
GOPLS_PACKAGE ?= go run golang.org/x/tools/gopls@v0.15
DOCKER_IMAGE ?= gitea/gitea
DOCKER_TAG ?= latest
@ -428,7 +429,7 @@ lint-go-vet:
.PHONY: lint-go-gopls
lint-go-gopls:
@echo "Running gopls..."
@gopls check $(GO_SOURCES_NO_BINDATA)
@$(GO) run $(GOPLS_PACKAGE) check $(GO_SOURCES_NO_BINDATA)
lint-editorconfig:
@$(GO) run $(EDITORCONFIG_CHECKER_PACKAGE) $(EDITORCONFIG_FILES)