# \[solved\]"make test" fails for "import cycle not allowed"

**URL:** <https://forum.mattermost.com/t/solved-make-test-fails-for-import-cycle-not-allowed/2250>\
**Category:** Installation\
**Created:** [September 20, 2016, 6:29am UTC](https://forum.mattermost.com/t/solved-make-test-fails-for-import-cycle-not-allowed/2250 "2016-09-20T06:29:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hzlijianjun](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@hzlijianjun](https://forum.mattermost.com/u/hzlijianjun)\
**Post date:** [September 20, 2016, 6:29am UTC](https://forum.mattermost.com/t/solved-make-test-fails-for-import-cycle-not-allowed/2250/1 "2016-09-20T06:29:21Z")

</div>

By following the “Developer Machine Setup” ([https://docs.mattermost.com/developer/developer-setup.html#ubuntu](https://docs.mattermost.com/developer/developer-setup.html#ubuntu)) , I run into a error as following image attachment.Can you help me?  
Thanks!

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex020/uploads/mattermost/original/1X/c2c0fd7ffb91f490b03c5effc49e46034bf0077b.jpg)

---

<div class="post-metadata">

**Author:** ![hzlijianjun](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@hzlijianjun](https://forum.mattermost.com/u/hzlijianjun)\
**Post date:** [September 20, 2016, 8:04am UTC](https://forum.mattermost.com/t/solved-make-test-fails-for-import-cycle-not-allowed/2250/2 "2016-09-20T08:04:47Z")

</div>

After waiting for 1 hour, There is no help coming makes me realize that I may have made low-level mistakes. It turns out is true.  
I set both my GOPATH and GOROOT to the location where Go installed out of ignorance.  
GOPATH should be where projects are (a “workspace”), not where go is installed.
