github.com/hasnat/dolt/go@v0.0.0-20210628190320-9eb5d843fbb7/utils/prepr/prepr.sh (about)

     1  #!/bin/bash
     2  
     3  set -eo pipefail
     4  
     5  script_dir=$(dirname "$0")
     6  cd $script_dir/../..
     7  
     8  target="master"
     9  if [[ $# -eq 1 ]]; then
    10      target="$1"
    11  fi
    12  
    13  # Keep this in sync with .github/workflows/ci-check-repo.yaml contents that
    14  # are easy to evaluate locally and might commonly fail.
    15  
    16  GOFLAGS="-mod=readonly" go build ./...
    17  ./utils/repofmt/check_fmt.sh
    18  ./Godeps/verify.sh
    19  go vet -mod=readonly ./...
    20  go run -mod=readonly ./utils/copyrightshdrs/