Update CircleCI error message if generated code is not properly committed
@@ -286,7 +286,7 @@ jobs:
- image.tar
- signalfx-agent-latest.tar.gz
- modules:
+ modules_and_generate:
executor: goexecutor
steps:
- checkout
@@ -296,7 +296,7 @@ jobs:
go mod download
go generate ./...
go mod tidy
- git diff --exit-code || (echo 'go modules are not properly tidied. Run `go mod tidy` and commit the changes.' && exit 1)
+ git diff --exit-code || (echo 'Go modules are not tidied and/or generated code is not properly committed. Run `go generate ./... && go mod tidy` and commit the changes.' && exit 1)
gotests:
executor: goexecutor
@@ -505,7 +505,7 @@ workflows:
build_test:
jobs:
- build
- - modules
+ - modules_and_generate
- gotests
- integration_tests:
requires:
