Make package fails for beats plugin


(Manjukb) #1

trying to build a new beats plugin

make package fails with bellow error

Working directory=/go
Copying main source folder /source to folder /go
Fetching dependencies...
Execute /scripts/before_build.sh 
cp: cannot stat 'fields.yml': No such file or directory
vendor/github.com/elastic/beats/libbeat/scripts/Makefile:469: 
recipe for target 'prepare-package-cgo' failed
make[1]: *** [prepare-package-cgo] Error 1
make[1]: Leaving directory 
'/home/smartthink/go/src/github.com/Manjukb/smartcenter'
vendor/github.com/elastic/beats/libbeat/scripts/Makefile:513: 
recipe for target 'package' failed
make: *** [package] Error 2

please let me know what might be the issue


(Pier-Hugues Pellerin) #2

Hello @Manjukb

From the message you are missing the fields.yml file, it should be present but
you can regenerate it by running the commandmake update and run make package after.

Are you running the master branch?


(system) #3

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