* Moving from govendor to dep. * Making the pull request template more friendly. * Fixing akward space in PR template. * goimports run on whole project using ` goimports -w $(find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./gen-go/*")` source of command: https://gist.github.com/bgentry/fd1ffef7dbde01857f66
13 lines
239 B
Bash
Executable file
13 lines
239 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [[ "$TRAVIS_GO_VERSION" =~ ^1\.[45](\..*)?$ ]]; then
|
|
exit 0
|
|
fi
|
|
|
|
go get github.com/ernesto-jimenez/gogen/imports
|
|
go generate ./...
|
|
if [ -n "$(git diff)" ]; then
|
|
echo "Go generate had not been run"
|
|
git diff
|
|
exit 1
|
|
fi
|