petergtz / pegomock

Pegomock is a powerful, yet simple mocking framework for the Go programming language
Apache License 2.0
253 stars 28 forks source link

Switch to build.Default.GOPATH #47

Closed lkysow closed 6 years ago

lkysow commented 6 years ago

Latest versions of golang don't require GOPATH environment variable to be set. Safer to rely on this which still checks for the environment variable.

lkysow commented 6 years ago

Also, I get this error when I try to run the tests

go test .
# github.com/petergtz/pegomock_test
./dsl_test.go:55:15: undefined: MockDisplay
./dsl_test.go:58:13: undefined: NewMockDisplay
FAIL    github.com/petergtz/pegomock [build **failed]**
lkysow commented 6 years ago

Ahh, I see I just need to run scripts/run_tests.sh

petergtz commented 6 years ago

That's great! Thanks a lot, @lkysow.