Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make issue #2

Closed
shkadov opened this issue Jun 8, 2018 · 1 comment
Closed

make issue #2

shkadov opened this issue Jun 8, 2018 · 1 comment
Assignees

Comments

@shkadov
Copy link

shkadov commented Jun 8, 2018

# cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
# go version
go version go1.7.4 linux/amd64

Got the following issues:

# make setup
mkdir -p vendor/github.com/elastic/
cp -R /home/projects/src/src/github.com/elastic/beats vendor/github.com/elastic/
rm -rf vendor/github.com/elastic/beats/.git
make update
make[1]: Entering directory '/home/projects/src/src/github.com/infonova/prometheusbeat'
make[2]: Entering directory '/home/projects/src/src/github.com/infonova/prometheusbeat/vendor/github.com/elastic/beats/libbeat'
echo /home/projects/src/src/github.com/infonova/prometheusbeat/vendor/github.com/elastic/beats/libbeat
/home/projects/src/src/github.com/infonova/prometheusbeat/vendor/github.com/elastic/beats/libbeat
Generated fields.yml for libbeat
make[2]: Leaving directory '/home/projects/src/src/github.com/infonova/prometheusbeat/vendor/github.com/elastic/beats/libbeat'
Updating generated files for prometheusbeat
mkdir -p include
go run  ./vendor/github.com/elastic/beats/dev-tools/cmd/asset/asset.go -pkg include fields.yml prometheusbeat > include/fields.go
Invalid file path: %s fields.yml
exit status 1
vendor/github.com/elastic/beats/libbeat/scripts/Makefile:319: recipe for target 'update' failed
make[1]: *** [update] Error 1
make[1]: Leaving directory '/home/projects/src/src/github.com/infonova/prometheusbeat'
Makefile:18: recipe for target 'setup' failed
make: *** [setup] Error 2
# make
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
go build -i -ldflags "-X github.com/elastic/beats/libbeat/version.buildTime=2018-06-08T09:03:40Z -X github.com/elastic/beats/libbeat/version.commit="
import cycle not allowed
package github.com/infonova/prometheusbeat
	imports github.com/infonova/prometheusbeat/beater
	imports github.com/elastic/beats/libbeat/publisher
	imports github.com/elastic/beats/libbeat/outputs
	imports github.com/elastic/beats/libbeat/publisher
vendor/github.com/elastic/beats/libbeat/scripts/Makefile:112: recipe for target 'prometheusbeat' failed
make: *** [prometheusbeat] Error 1
@boernd
Copy link
Contributor

boernd commented Jun 12, 2018

Upgraded libbeat and refactored prom imports. Build should work now. Tested with latest prom release and ESv6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants