summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2023-05-06 11:00:52 +0200
committerJason Song <i@wolfogre.com>2023-05-06 11:00:52 +0200
commitde4160b0231dcb0678fb454dc740535b9c23df59 (patch)
treeae48ea1690de19685965fd5963621aad20aee6d9 /Makefile
parentfix `--event` option logic for `exec` (#175) (diff)
downloadforgejo-runner-de4160b0231dcb0678fb454dc740535b9c23df59.tar.xz
forgejo-runner-de4160b0231dcb0678fb454dc740535b9c23df59.zip
Skip counting log length when parseLogRow return nil (#176)
Fix: ![image](/attachments/93e29bc0-3599-4f7e-8b90-512562a5d711) Regression of #149, `LogLength` could be incorrect. It may be related to https://github.com/go-gitea/gitea/issues/24458 Reviewed-on: https://gitea.com/gitea/act_runner/pulls/176 Reviewed-by: Zettat123 <zettat123@noreply.gitea.io> Reviewed-by: wxiaoguang <wxiaoguang@noreply.gitea.io>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a72fdeb..454d2f5 100644
--- a/Makefile
+++ b/Makefile
@@ -65,6 +65,9 @@ else
endif
endif
+GO_PACKAGES_TO_VET ?= $(filter-out gitea.com/gitea/act_runner/internal/pkg/client/mocks,$(shell $(GO) list ./...))
+
+
TAGS ?=
LDFLAGS ?= -X "gitea.com/gitea/act_runner/internal/pkg/ver.version=$(RELASE_VERSION)"
@@ -105,7 +108,7 @@ test: fmt-check
vet:
@echo "Running go vet..."
@$(GO) build code.gitea.io/gitea-vet
- @$(GO) vet -vettool=gitea-vet ./...
+ @$(GO) vet -vettool=gitea-vet $(GO_PACKAGES_TO_VET)
install: $(GOFILES)
$(GO) install -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)'