File: verify-gomod-tidy.sh

package info (click to toggle)
golang-github-linode-linodego 1.55.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,112 kB
  • sloc: makefile: 96; sh: 52; python: 24
file content (13 lines) | stat: -rw-r--r-- 193 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash

set -e

go mod tidy

if [[ `git status --porcelain` ]]; then
    echo 'go.mod needs updating'
    echo 'Please run "go mod tidy" to fix dependencies'
    exit 1
fi

exit 0