github.com/gopherd/gonum@v0.0.4/.github/workflows/script.d/deps.sh (about)

     1  #!/bin/bash
     2  
     3  set -ex
     4  
     5  # Avoid contaminating the go.mod/go.sum files.
     6  # TODO(kortschak): Remove when golang/go#30515 is resolved
     7  WORK=$(mktemp -d)
     8  pushd $WORK
     9  
    10  # Required for format check.
    11  go get golang.org/x/tools/cmd/goimports
    12  # Required for imports check.
    13  go get gonum.org/v1/tools/cmd/check-imports
    14  # Required for copyright header check.
    15  go get gonum.org/v1/tools/cmd/check-copyright
    16  # Required for coverage.
    17  go get golang.org/x/tools/cmd/cover
    18  # Required for dot parser checks.
    19  go get github.com/goccmack/gocc@66c61e9
    20  # Required for rdf parser checks.
    21  go get golang.org/x/tools/cmd/stringer
    22  
    23  # Clean up.
    24  # TODO(kortschak): Remove when golang/go#30515 is resolved.
    25  popd
    26  rm -rf $WORK