From f52f167f095d6513add4066979f1b4d521f42a53 Mon Sep 17 00:00:00 2001 From: Ivan Valdes Date: Sat, 21 Dec 2024 21:08:05 -0800 Subject: [PATCH] Migrate fix-yamllint to use the Go workspace 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bea5e8ec5fa0..316b3f0c3538 100644 --- a/Makefile +++ b/Makefile @@ -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: