1#!/usr/bin/env bash
2
3set -eo pipefail
4
5# Check go tidy
6git diff go.sum go.mod > /tmp/gomod-${CI_JOB_ID}-before
7go mod tidy
8git diff go.sum go.mod > /tmp/gomod-${CI_JOB_ID}-after
9diff -U0 /tmp/gomod-${CI_JOB_ID}-before /tmp/gomod-${CI_JOB_ID}-after
10
11