Skip to content

Commit

Permalink
Do not download modules during CI build (gomods#815)
Browse files Browse the repository at this point in the history
* Do not download modules during CI build

* install golint in non module system

* Use vendor in tests + update vendor dir

* mod tidy
  • Loading branch information
marwan-at-work authored and arschles committed Oct 24, 2018
1 parent 117698d commit 322ff26
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 5 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ require (
github.com/go-playground/universal-translator v0.16.0 // indirect
github.com/gobuffalo/buffalo v0.13.1
github.com/gobuffalo/envy v1.6.5
github.com/gobuffalo/mw-csrf v0.0.0-20180802151833-446ff26e108b
github.com/gobuffalo/mw-forcessl v0.0.0-20180802152810-73921ae7a130
github.com/gobuffalo/mw-paramlogger v0.0.0-20181005191442-d6ee392ec72e
github.com/gobuffalo/suite v2.1.6+incompatible
Expand Down
2 changes: 1 addition & 1 deletion scripts/check_golint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# Run the linter on everything except generated code
set -euo pipefail

GO111MODULE=on golint -set_exit_status $(GO111MODULE=on go list ./... | grep -v '/mocks')
golint -set_exit_status $(GO111MODULE=off go list ./... | grep -v '/mocks')
2 changes: 1 addition & 1 deletion scripts/get_buffalo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ true)
rm -r $TMPDIR
;;
*)
GO111MODULE=on go get github.com/gobuffalo/buffalo/buffalo
go get github.com/gobuffalo/buffalo/buffalo
;;
esac
2 changes: 1 addition & 1 deletion scripts/get_dev_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
# Ensure that the tools needed to build locally are present
set -xeuo pipefail

GO111MODULE=on go get golang.org/x/lint/golint
GO111MODULE=off go get golang.org/x/lint/golint

./scripts/get_buffalo.sh
2 changes: 1 addition & 1 deletion scripts/test_unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ export GO111MODULE=on

# Run the unit tests with the race detector and code coverage enabled
set -xeuo pipefail
go test -mod=readonly -race -coverprofile cover.out -covermode atomic ./...
go test -mod=vendor -race -coverprofile cover.out -covermode atomic ./...
34 changes: 34 additions & 0 deletions vendor/github.com/gobuffalo/tags/shoulders.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions vendor/github.com/gobuffalo/tags/version.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 322ff26

Please sign in to comment.