Skip to content

Commit

Permalink
Migrate fix-yamllint to use the Go workspace
Browse files Browse the repository at this point in the history
Update the `YAMLFMT_VERSION` variable in the Makefile to remove the
unnecessary `cd tools/mod` command, leveraging the Go workspace.

Signed-off-by: Ivan Valdes <ivan@vald.es>
  • Loading branch information
ivanvc committed Feb 1, 2025
1 parent de2b40e commit dec0606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ verify-govet-shadow:
verify-markdown-marker:
PASSES="markdown_marker" ./scripts/test.sh

YAMLFMT_VERSION = $(shell cd tools/mod && go list -m -f '{{.Version}}' github.com/google/yamlfmt)
YAMLFMT_VERSION = $(shell go list -m -f '{{.Version}}' github.com/google/yamlfmt)

.PHONY: fix-yamllint
fix-yamllint:
Expand Down

0 comments on commit dec0606

Please sign in to comment.