gitlab.com/gitlab-org/labkit@v1.21.0/tidy.sh (about) 1 #!/usr/bin/env sh 2 3 set -eux 4 5 # Check go tidy 6 git diff go.sum go.mod > /tmp/gomod-"${CI_JOB_ID}"-before 7 git diff go.sum go.mod > /tmp/gomod-"${CI_JOB_ID}"-after 8 go mod tidy 9 diff -U0 /tmp/gomod-"${CI_JOB_ID}"-before /tmp/gomod-"${CI_JOB_ID}"-after 10