Skip to content

Commit

Permalink
fix: don't format files during build
Browse files Browse the repository at this point in the history
If there are any unformatted files, CI fails with confusing
"read-only file system" error.
  • Loading branch information
ThinkChaos committed Nov 12, 2023
1 parent dc66eff commit 3e0df5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ else
go generate ./...
endif

build: fmt generate ## Build binary
build: generate ## Build binary
go build $(GO_BUILD_FLAGS) -ldflags="$(GO_BUILD_LD_FLAGS)" -o $(GO_BUILD_OUTPUT)
ifdef BIN_USER
$(info setting owner of $(GO_BUILD_OUTPUT) to $(BIN_USER))
Expand Down Expand Up @@ -81,7 +81,7 @@ fmt: ## gofmt and goimports all go files
go run mvdan.cc/gofumpt -l -w -extra .
find . -name '*.go' -exec go run golang.org/x/tools/cmd/goimports -w {} +

docker-build: generate ## Build docker image
docker-build: generate ## Build docker image
docker buildx build \
--build-arg VERSION=${VERSION} \
--build-arg BUILD_TIME=${BUILD_TIME} \
Expand Down

0 comments on commit 3e0df5f

Please sign in to comment.