Make command fails when trying to compile new metricset in metricbeat

I installed all the dependencies for creating new metricset with metricbeat(include Bison\Yacc).
After running the "Make create-metricset" and "Make collect" successfully I tried to compile the beat with the "Make" command but it fails with the following errors:

y.tab.c:2405:7: warning: implicit declaration of function ‘yyerror’; did you mean ‘yyerrok’? [-Wimplicit-function-declaration] ../vendor/github.com/yuin/gopher-lua/parse/parser.go.y: At top level: ../vendor/github.com/yuin/gopher-lua/parse/parser.go.y:516:1: error: unknown type name ‘func’ func TokenName(c int) string { ^~~~ ../vendor/github.com/yuin/gopher-lua/parse/parser.go.y:516:16: error: unknown type name ‘c’ func TokenName(c int) string { ^ <builtin>: recipe for target '../vendor/github.com/yuin/gopher-lua/parse/parser.go.o' failed make: *** [../vendor/github.com/yuin/gopher-lua/parse/parser.go.o] Error 1 rm ../vendor/github.com/yuin/gopher-lua/parse/parser.go.c

Can you try to run "make update-yacc-vendor"?

Thank you! It did the work and fixed my problem!

Is this a new issue @mtojek? I was trying to build filebeat from the master branch, and I hit the same issue. I don't recall running into this issue in the past.

I have to mention that I had to install yacc/bison manually before I ran the "make" command