fix: add generate dependency to test and vet Makefile targets
make test and make vet fail on a fresh clone because the go:embed workspace directory does not exist until go generate runs. The build target already depends on generate, but test and vet did not. Also fixes the test target comment which incorrectly read '## fmt: Format Go code'.
This commit is contained in:
parent
8774526616
commit
89bc7aaea5
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -129,11 +129,11 @@ clean:
|
|||
@echo "Clean complete"
|
||||
|
||||
## vet: Run go vet for static analysis
|
||||
vet:
|
||||
vet: generate
|
||||
@$(GO) vet ./...
|
||||
|
||||
## test: Test Go code
|
||||
test:
|
||||
test: generate
|
||||
@$(GO) test ./...
|
||||
|
||||
## fmt: Format Go code
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue