Compile error - gotestcover " matched no packages"

beats]# make
make -C libbeat testsuite || exit 1; make -C packetbeat testsuite || exit 1; make -C topbeat testsuite || exit 1; make -C filebeat testsuite || exit 1; make -C winlogbeat testsuite || exit 1; make -C metricbeat testsuite || exit 1;
make[1]: Entering directory /root/beats/libbeat' make unit-tests make[2]: Entering directory/root/beats/libbeat'
mkdir -p /root/beats/libbeat/build/coverage
gotestcover is needed to fetch coverage for multiple packages
go get github.com/pierrre/gotestcover
/root/beats/src/bin/gotestcover -coverprofile=/root/beats/libbeat/build/coverage/unit.cov github.com/elastic/beats/libbeat/...
command [go test -cover -coverprofile /tmp/gotestcover-394298164 warning: "github.com/elastic/beats/libbeat/..." matched no packages]: exit status 1
warning: "warning: "github.com/elastic/beats/libbeat/..." matched no packages" matched no packages
no packages to test
test failed
make[2]: *** [unit-tests] Error 1
make[2]: Leaving directory /root/beats/libbeat' make[1]: *** [testsuite] Error 2 make[1]: Leaving directory/root/beats/libbeat'
make: *** [testsuite] Error 1

Probably your Go development environment is setup wrong. See https://github.com/elastic/beats/blob/master/CONTRIBUTING.md#setting-up-your-dev-environment

We are not currently seeing any failures in our CI systems (Jenkins, Travis, or AppVeyor).

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