.github/workflows: remove separate "build stringer" step
We now use "go run" instead of compiling stringer separately. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
parent
9faee90744
commit
008f36986e
5
.github/workflows/go_generate.yml
vendored
5
.github/workflows/go_generate.yml
vendored
@ -26,16 +26,13 @@ jobs:
|
||||
|
||||
- name: check 'go generate' is clean
|
||||
run: |
|
||||
mkdir gentools
|
||||
go build -o gentools/stringer golang.org/x/tools/cmd/stringer
|
||||
if [[ "${{github.ref}}" == release-branch/* ]]
|
||||
then
|
||||
pkgs=$(go list ./... | grep -v dnsfallback)
|
||||
else
|
||||
pkgs=$(go list ./...)
|
||||
fi
|
||||
echo pkgs: $pkgs
|
||||
PATH="$PATH:$(pwd)/gentools" go generate $pkgs
|
||||
go generate $pkgs
|
||||
echo
|
||||
echo
|
||||
git diff --name-only --exit-code || (echo "The files above need updating. Please run 'go generate'."; exit 1)
|
||||
|
Loading…
Reference in New Issue
Block a user