1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Merge branch 'indradhanush-indradhanush/add-vendor-check-to-builds'

This commit is contained in:
Chris Cummer 2019-10-21 21:12:18 -07:00
commit 8c328f01e7
4 changed files with 18 additions and 1 deletions

View File

@ -11,4 +11,4 @@ before_install:
- cd $HOME/gopath/src/github.com/wtfutil/wtf
- export GOPROXY="https://gocenter.io" && export GO111MODULE=on
script: go get ./... && go test -v github.com/wtfutil/wtf/...
script: go get ./... && ./scripts/check-uncommitted-vendor-files.sh && go test -v github.com/wtfutil/wtf/...

1
go.mod
View File

@ -49,6 +49,7 @@ require (
github.com/zorkian/go-datadog-api v2.24.0+incompatible
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
google.golang.org/api v0.11.0
gopkg.in/jarcoal/httpmock.v1 v1.0.0-20181110093347-3be5f16b70eb // indirect
gopkg.in/yaml.v2 v2.2.4
k8s.io/api v0.0.0-20191010143144-fbf594f18f80 // indirect
k8s.io/apimachinery v0.0.0-20191016060620-86f2f1b9c076

2
go.sum
View File

@ -336,6 +336,8 @@ gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
gopkg.in/inf.v0 v0.9.0 h1:3zYtXIO92bvsdS3ggAdA8Gb4Azj0YU+TVY1uGYNFA8o=
gopkg.in/inf.v0 v0.9.0/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
gopkg.in/jarcoal/httpmock.v1 v1.0.0-20181110093347-3be5f16b70eb h1:ggw12VRqlkVtHkyK+zh3QP+V6PIGAuKQG/u0Mnkn6TQ=
gopkg.in/jarcoal/httpmock.v1 v1.0.0-20181110093347-3be5f16b70eb/go.mod h1:d3R+NllX3X5e0zlG1Rful3uLvsGC/Q3OHut5464DEQw=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

View File

@ -0,0 +1,14 @@
#!/bin/bash
set -euo pipefail
GOPROXY="https://gocenter.io" GOSUMDB=off GO111MODULE=on go mod tidy
untracked_files=$(git ls-files --others --exclude-standard | wc -l)
diff_stat=$(git diff --shortstat)
if [[ "${untracked_files}" -ne 0 || -n "${diff_stat}" ]]; then
echo 'Untracked or diff in tracked vendor files found. Please run "go mod tidy" and commit the changes'
exit 1
fi