mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-25 17:25:29 +00:00
gofump don't touch code generated files (#1654)
`make format` did touch code generated files witch creates a mess from time to time ... this change it ...
This commit is contained in:
3
Makefile
3
Makefile
@@ -1,4 +1,3 @@
|
|||||||
GOFILES_NOVENDOR = $(shell find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./.git/*")
|
|
||||||
GO_PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
|
GO_PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
|
||||||
|
|
||||||
TARGETOS ?= linux
|
TARGETOS ?= linux
|
||||||
@@ -83,7 +82,7 @@ vendor: ## Update the vendor directory
|
|||||||
go mod vendor
|
go mod vendor
|
||||||
|
|
||||||
format: install-tools ## Format source code
|
format: install-tools ## Format source code
|
||||||
@gofumpt -extra -w ${GOFILES_NOVENDOR}
|
@gofumpt -extra -w .
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean: ## Clean build artifacts
|
clean: ## Clean build artifacts
|
||||||
|
Reference in New Issue
Block a user