Skip to content

Commit

Permalink
Add go vet and gofmt in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
outscale-toa committed Jun 21, 2024
1 parent dda70ca commit 82a4d1b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,22 @@ PLUGIN_FQN="$(shell grep -E '^module' <go.mod | sed -E 's/module *//')"

COUNT?=1
TEST?=$(shell go list ./...)
CHECK_DIR?=./...
HASHICORP_PACKER_PLUGIN_SDK_VERSION?=$(shell go list -m github.com/hashicorp/packer-plugin-sdk | cut -d " " -f2)

.PHONY: fmt

.PHONY: dev

build:
.PHONY: vet

fmt:
gofmt -l -s -w .

vet: fmt
go vet $(CHECK_DIR)

build: fmt vet
go build -o ${BINARY}

dev:
Expand Down

0 comments on commit 82a4d1b

Please sign in to comment.