From ac05ebd3804977757f734a3b1f6da2a581e6fc94 Mon Sep 17 00:00:00 2001 From: Fionera Date: Tue, 17 Oct 2023 05:00:19 +0200 Subject: [PATCH] switch directory for tool installation this will stay till go 1.22 which will probably add tools --- .github/workflows/go.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6ea6f7d..b832904 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -42,7 +42,9 @@ jobs: - name: Run go generate run: | + cd internal/tools go install golang.org/x/tools/cmd/stringer + cd ../.. go generate ./... git diff --exit-code || (echo "Generated files have changed. Please run 'go generate' and commit the changes." && exit 1)