Debian Codegraph @

internal/testify/.travis.gogenerate.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 # If GOMOD is defined we are running with Go Modules enabled, either
4 # automatically or via the GO111MODULE=on environment variable. Codegen only
5 # works with modules, so skip generation if modules is not in use.
6 if [[ -z "$(go env GOMOD)" ]]; then
7 echoscip-shell system . . echo. "Skipping go generate because modules not enabled and required"
8 exit 0
9 fi
10
11 goscip-shell system . . go. generate ./...
12 if [scip-shell system . . `[`. -n "$(gitscip-shell system . . git. diff)" ]; then
13 echoscip-shell system . . echo. "Go generate had not been run"
14 gitscip-shell system . . git. diff
15 exit 1
16 fi