# Import cycle not allowed when trying to make "protologbeat"

**URL:** <https://discuss.elastic.co/t/import-cycle-not-allowed-when-trying-to-make-protologbeat/93583>\
**Category:** Beats\
**Created:** [July 18, 2017, 12:50pm UTC](https://discuss.elastic.co/t/import-cycle-not-allowed-when-trying-to-make-protologbeat/93583 "2017-07-18T12:50:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![4mine](https://avatars.discourse-cdn.com/v4/letter/4/db5fbb/32.png) [@4mine](https://discuss.elastic.co/u/4mine)\
**Post date:** [July 18, 2017, 12:50pm UTC](https://discuss.elastic.co/t/import-cycle-not-allowed-when-trying-to-make-protologbeat/93583/1 "2017-07-18T12:50:57Z")

</div>

Hello, when I'm trying to make protologbeat, I get these errors:

vendor/github.com/elastic/beats/libbeat/scripts/Makefile:89: warning: overriding commands for target `libbeat' vendor/github.com/elastic/beats/libbeat/scripts/Makefile:85: warning: ignoring old commands for target`libbeat'  
vendor/github.com/elastic/beats/libbeat/beat/beat.go:52:2: found packages dashboards (config.go) and main (import\_dashboards.go) in /usr/local/src/github.com/hartfordfive/protologbeat/vendor/github.com/elastic/beats/libbeat/dashboards  
import cycle not allowed  
package [github.com/hartfordfive/protologbeat](http://github.com/hartfordfive/protologbeat)  
imports [github.com/elastic/beats/libbeat/beat](http://github.com/elastic/beats/libbeat/beat)  
imports [github.com/elastic/beats/libbeat/monitoring/report/elasticsearch](http://github.com/elastic/beats/libbeat/monitoring/report/elasticsearch)  
imports [github.com/elastic/beats/libbeat/outputs](http://github.com/elastic/beats/libbeat/outputs)  
imports [github.com/elastic/beats/libbeat/publisher](http://github.com/elastic/beats/libbeat/publisher)  
imports [github.com/elastic/beats/libbeat/outputs](http://github.com/elastic/beats/libbeat/outputs)  
vendor/github.com/elastic/beats/libbeat/beat/beat.go:69:2: found packages add\_cloud\_metadata (add\_cloud\_metadata.go) and actions (add\_cloud\_metadata\_test.go) in /usr/local/src/github.com/hartfordfive/protologbeat/vendor/github.com/elastic/beats/libbeat/processors/add\_cloud\_metadata  
import cycle not allowed  
package [github.com/hartfordfive/protologbeat](http://github.com/hartfordfive/protologbeat)  
imports [github.com/elastic/beats/libbeat/beat](http://github.com/elastic/beats/libbeat/beat)  
imports [github.com/elastic/beats/libbeat/monitoring/report/elasticsearch](http://github.com/elastic/beats/libbeat/monitoring/report/elasticsearch)  
imports [github.com/elastic/beats/libbeat/outputs](http://github.com/elastic/beats/libbeat/outputs)  
imports [github.com/elastic/beats/libbeat/publisher](http://github.com/elastic/beats/libbeat/publisher)  
imports [github.com/elastic/beats/libbeat/outputs/console](http://github.com/elastic/beats/libbeat/outputs/console)  
imports [github.com/elastic/beats/libbeat/publisher](http://github.com/elastic/beats/libbeat/publisher)  
make: \*\*\* [libbeat] Error 1

Is there any solution to avoid these cycle error  
(I use golang 1.8)

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [July 19, 2017, 12:32am UTC](https://discuss.elastic.co/t/import-cycle-not-allowed-when-trying-to-make-protologbeat/93583/2 "2017-07-19T00:32:36Z")

</div>

I didn't have any issues building protologbeat. I did a clean build in docker and it worked.

`docker run --rm golang:1.8.3 sh -c "go get [github.com/hartfordfive/protologbeat](http://github.com/hartfordfive/protologbeat) && protologbeat -h"

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 8, 2017, 12:51pm UTC](https://discuss.elastic.co/t/import-cycle-not-allowed-when-trying-to-make-protologbeat/93583/3 "2017-08-08T12:51:36Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
