diff options
author | Jason Song <i@wolfogre.com> | 2023-05-06 11:00:52 +0200 |
---|---|---|
committer | Jason Song <i@wolfogre.com> | 2023-05-06 11:00:52 +0200 |
commit | de4160b0231dcb0678fb454dc740535b9c23df59 (patch) | |
tree | ae48ea1690de19685965fd5963621aad20aee6d9 /Makefile | |
parent | fix `--event` option logic for `exec` (#175) (diff) | |
download | forgejo-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-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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)' |