Failed to create new beat

After creating the beat, I got the error below according to the instruction from this link: https://www.elastic.co/guide/en/beats/devguide/7.3/setting-up-beat.html

[root@elk infabeat]# make setup
mkdir -p vendor/github.com/elastic
cp -R /root/go/src/github.com/elastic/beats vendor/github.com/elastic/
rm -rf vendor/github.com/elastic/beats/.git vendor/github.com/elastic/beats/x-pack
mkdir -p vendor/github.com/magefile
cp -R /root/go/src/github.com/elastic/beats/vendor/github.com/magefile/mage vendor/github.com/magefile
git init
Reinitialized existing Git repository in /root/go/src/github.com///.git/
make -f ./vendor/github.com/elastic/beats/libbeat/scripts/Makefile mage ES_BEATS=./vendor/github.com/elastic/beats
make[1]: Entering directory /root/go/src/github.com/<username>/<beatname>' Installing mage v1.8.0 from vendor dir. can't load package: package github.com/<username>/<beatname>/vendor/github.com/magefile/mage: cannot use path@version syntax in GOPATH mode make[1]: *** [mage] Error 1 make[1]: Leaving directory/root/go/src/github.com//'
make: *** [pre-setup] Error 2
[root@elk infabeat]#

Env is like this:

[root@elk infabeat]# python --version
Python 2.7.9
[root@elk infabeat]# virtualenv --version
16.7.5
[root@elk infabeat]# go version
go version go1.13 linux/amd64
[root@elk infabeat]# uname -a
Linux elk 3.10.0-693.el7.x86_64 #1 SMP Thu Jul 6 19:56:57 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@elk infabeat]#

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.