# \[Solved\] Fresh Checkout & Empty ~/go Fails \`make test\`

**URL:** <https://forum.mattermost.com/t/solved-fresh-checkout-empty-go-fails-make-test/1024>\
**Category:** Troubleshooting\
**Created:** [March 7, 2016, 4:07pm UTC](https://forum.mattermost.com/t/solved-fresh-checkout-empty-go-fails-make-test/1024 "2016-03-07T16:07:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RangerRick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/rangerrick/32/208_2.png) [@RangerRick](https://forum.mattermost.com/u/RangerRick)\
**Post date:** [March 7, 2016, 4:07pm UTC](https://forum.mattermost.com/t/solved-fresh-checkout-empty-go-fails-make-test/1024/1 "2016-03-07T16:07:22Z")

</div>

An attempt to build from a fresh checkout (and empty ~/go) gives the following error:

```auto
10:57:48 Sin:~/git/mattermost ranger$ make test
Starting docker containers
/Users/ranger/opt/go/bin/godep go test -run=. -test.v -test.timeout=180s ./api || exit 1
../../opt/go/src/github.com/mattermost/platform/model/utils.go:8:2: cannot find package "code.google.com/p/go-uuid/uuid" in any of:
    /usr/local/Cellar/go/1.6/libexec/src/code.google.com/p/go-uuid/uuid (from $GOROOT)
    /Users/ranger/git/mattermost/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid (from $GOPATH)
    /Users/ranger/opt/go/src/code.google.com/p/go-uuid/uuid
../../opt/go/src/github.com/mattermost/platform/model/user.go:7:2: cannot find package "code.google.com/p/go.crypto/bcrypt" in any of:
    /usr/local/Cellar/go/1.6/libexec/src/code.google.com/p/go.crypto/bcrypt (from $GOROOT)
    /Users/ranger/git/mattermost/Godeps/_workspace/src/code.google.com/p/go.crypto/bcrypt (from $GOPATH)
    /Users/ranger/opt/go/src/code.google.com/p/go.crypto/bcrypt
../../opt/go/src/github.com/mattermost/platform/model/client.go:8:2: cannot find package "code.google.com/p/log4go" in any of:
    /usr/local/Cellar/go/1.6/libexec/src/code.google.com/p/log4go (from $GOROOT)
    /Users/ranger/git/mattermost/Godeps/_workspace/src/code.google.com/p/log4go (from $GOPATH)
    /Users/ranger/opt/go/src/code.google.com/p/log4go
api/user.go:15:2: cannot find package "github.com/mattermost/platform/einterfaces" in any of:
    /usr/local/Cellar/go/1.6/libexec/src/github.com/mattermost/platform/einterfaces (from $GOROOT)
    /Users/ranger/git/mattermost/Godeps/_workspace/src/github.com/mattermost/platform/einterfaces (from $GOPATH)
    /Users/ranger/opt/go/src/github.com/mattermost/platform/einterfaces
godep: go exit status 1

```

Any ideas on how to fix?

---

<div class="post-metadata">

**Author:** ![RangerRick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/rangerrick/32/208_2.png) [@RangerRick](https://forum.mattermost.com/u/RangerRick)\
**Post date:** [March 7, 2016, 4:36pm UTC](https://forum.mattermost.com/t/solved-fresh-checkout-empty-go-fails-make-test/1024/2 "2016-03-07T16:36:06Z")

</div>

aha! turns out that my ~/go being missing is irrelevant, I had go in ~/opt/go 😖

Cleaning everything out seems to have fixed the build for me.

---

<div class="post-metadata">

**Author:** ![michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@michael](https://forum.mattermost.com/u/michael)\
**Post date:** [April 6, 2016, 10:42pm UTC](https://forum.mattermost.com/t/solved-fresh-checkout-empty-go-fails-make-test/1024/3 "2016-04-06T22:42:19Z")

</div>

Hi @RangerRick; could you elaborate on what steps you took to resolve this? I’m facing the same error, but have a different local machine setup. Perhaps if I understand the crux of the issue you identified, that would help troubleshoot.

Thanks!
