github.com/fortexxx/gqlgen@v0.10.3-0.20191216030626-ca5ea8b21ead/.circleci/check-generate (about)

     1  #!/bin/bash
     2  
     3  set -euo pipefail
     4  
     5  go generate ./...
     6  
     7  if [[ $(git --no-pager diff) ]] ; then
     8      echo "you need to run "go generate ./..." and commit the changes"
     9      git --no-pager diff
    10      exit 1
    11  fi