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

cannot find package "github.com/prometheus/client_golang/text" #1165

Closed
bbigras opened this Issue Oct 15, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@bbigras
Copy link

bbigras commented Oct 15, 2015

I'm trying to install using the instructions on https://github.com/prometheus/prometheus#building-from-source

$ env GOPATH=/opt/prometheus go get github.com/prometheus/prometheus/...
package github.com/prometheus/prometheus/vendor/github.com/golang/snappy: code in directory /opt/prometheus/src/github.com/prometheus/prometheus/vendor/github.com/golang/snappy expects import "github.com/golang/snappy"
package github.com/prometheus/prometheus/vendor/golang.org/x/net/context: code in directory /opt/prometheus/src/github.com/prometheus/prometheus/vendor/golang.org/x/net/context expects import "golang.org/x/net/context"
package github.com/prometheus/prometheus/vendor/github.com/prometheus/client_golang/prometheus
        imports github.com/prometheus/client_golang/text: cannot find package "github.com/prometheus/client_golang/text" in any of:
        /usr/local/go/src/github.com/prometheus/client_golang/text (from $GOROOT)
        /opt/prometheus/src/github.com/prometheus/client_golang/text (from $GOPATH)

go version go1.5.1 linux/386

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Oct 15, 2015

@brunoqc Thanks for reporting this! Indeed, we changed the way we do vendoring, which needs the GO15VENDOREXPERIMENT=1 env var to be set. And it would also be better to change it to go get github.com/prometheus/prometheus/cmd/... because that would not have tried to directly build the packages under ./vendor then, so the build would still have succeeded, albeit not using the vendored library versions.

I filed a PR for that: #1166

@juliusv juliusv closed this in 41a7217 Oct 16, 2015

juliusv added a commit that referenced this issue Oct 16, 2015

@bbigras

This comment has been minimized.

Copy link
Author

bbigras commented Oct 16, 2015

It works with the new instructions. Thanks! 👍

fabxc added a commit that referenced this issue Jan 11, 2016

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.