Skip to content

Commit

Permalink
fix: go generate check doesn't fail in case if found diff ci + re-gen…
Browse files Browse the repository at this point in the history
…erate sync map to latest go (#685)

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
  • Loading branch information
denis-tingaikin authored Feb 1, 2021
1 parent ba23614 commit 4592ea0
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ jobs:
run: go generate ./...
- name: Check for changes in generated code
run: |
git diff -- '*.pb.go' || ( echo "Rerun go generate ./... locally and resubmit" && false )
git diff -- '*.gen.go' || ( echo "Rerun go generate ./... locally and resubmit" && false )
if [[ $(git diff -- '*.gen.go') ]]; then
echo "Run go generate ./..." locally and commit changes
exit 1
fi
excludereplace:
name: Exclude Replace in go.mod
runs-on: ubuntu-latest
Expand Down
44 changes: 36 additions & 8 deletions pkg/registry/common/endpointurls/sync_map.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4592ea0

Please sign in to comment.