Import cycle not allowed when trying to make "protologbeat"

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 targetlibbeat'
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
imports github.com/elastic/beats/libbeat/beat
imports github.com/elastic/beats/libbeat/monitoring/report/elasticsearch
imports github.com/elastic/beats/libbeat/outputs
imports github.com/elastic/beats/libbeat/publisher
imports 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
imports github.com/elastic/beats/libbeat/beat
imports github.com/elastic/beats/libbeat/monitoring/report/elasticsearch
imports github.com/elastic/beats/libbeat/outputs
imports github.com/elastic/beats/libbeat/publisher
imports github.com/elastic/beats/libbeat/outputs/console
imports github.com/elastic/beats/libbeat/publisher
make: *** [libbeat] Error 1

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

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 && protologbeat -h"

1 Like

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