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

Building telegraf manipulates other repos on $GOPATH #3394

Closed
brianm opened this issue Oct 26, 2017 · 3 comments
Closed

Building telegraf manipulates other repos on $GOPATH #3394

brianm opened this issue Oct 26, 2017 · 3 comments
Assignees
Labels
feature request Requests for new plugin and for new features to existing plugins
Milestone

Comments

@brianm
Copy link

brianm commented Oct 26, 2017

Bug report

Building telegraf via the included Makefile uses gdm to manage dependencies. Unfortunately, gdm behaves poorly in regards to the common practice of using a singular GOPATH. A well behaved build will not manipulate things outside of the project being worked on.

Relevant telegraf.conf:

n/a

System info:

n/a

Steps to reproduce:

  1. make

Expected behavior:

Elements outside the checked telegraf/... directory are not changed by the build.

Actual behavior:

Many things outside the checkoued telegraf/... directory are manipulated.

Additional info:

Go has introduced the vendor/ directory behavior and dependency metadata (Gopkg.toml) to olve this exact problem, and the dep tool to manage these.

Proposal:

Switch to using dep to manage dependencies.

@danielnelson
Copy link
Contributor

We may do this in the future, but not until dep is a little more mature. In the meantime you can use the make telegraf target to skip running gdm.

@goller
Copy link
Contributor

goller commented Dec 11, 2017

Hi @brianm I made a PR to convert to dep here: #3564

Would you have time to look at it and give feedback?

@james-lawrence
Copy link
Contributor

james-lawrence commented May 3, 2018

as an aside, those of us who run gnome on linux get this wonderful error:

make
make deps
make[1]: Entering directory '/shared/james-lawrence/development/telegraf/src/github.com/influxdata/telegraf'
go get -u github.com/golang/lint/golint
go get github.com/sparrc/gdm
gdm restore
Only the root user can run GDM

due to the collision between the dependency tool and the gnome display manager.

@danielnelson danielnelson added this to the 1.8.0 milestone Jun 15, 2018
@glinton glinton added the feature request Requests for new plugin and for new features to existing plugins label Jun 15, 2018
glinton added a commit that referenced this issue Jun 18, 2018
glinton added a commit that referenced this issue Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

No branches or pull requests

5 participants