Skip to content

go install not working / metrics package not found #163

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

Closed
cmuench opened this issue Jan 29, 2021 · 4 comments · Fixed by #164
Closed

go install not working / metrics package not found #163

cmuench opened this issue Jan 29, 2021 · 4 comments · Fixed by #164

Comments

@cmuench
Copy link

cmuench commented Jan 29, 2021

Description

I tried to install the tool with go install github.com/docker/hub-tool.
It's currently failing, because the package github.com/docker/compose-cli/metrics cannot be found.
I checked the metrics package. It seems that they reorganized the structure in the main branch.

Steps to reproduce the issue:

  1. go install github.com/docker/hub-tool

Describe the results you received:

go/src/github.com/docker/hub-tool/internal/metrics/metrics.go:22:2: cannot find package "github.com/docker/compose-cli/metrics" in any of:
	/usr/lib/go/src/github.com/docker/compose-cli/metrics (from $GOROOT)
	/home/cmuench/go/src/github.com/docker/compose-cli/metrics (from $GOPATH)

Describe the results you expected:

Tool can be installed without an error.

Output of go version:
go version go1.15.7 linux/amd64

@ndeloof
Copy link

ndeloof commented Jan 29, 2021

"metrics" package on compose-cli project has moved to https://github.com/docker/compose-cli/tree/main/cli/metrics
will move again, as we want this to be hosted by docker/cli

@rumpl
Copy link
Member

rumpl commented Jan 29, 2021

@cmuench sorry about the hickup, can you try and run GO111MODULE=on go get github.com/docker/hub-tool and tell us if that works please?

@cmuench
Copy link
Author

cmuench commented Jan 29, 2021

@rumpl That works. 👍

@rumpl
Copy link
Member

rumpl commented Jan 29, 2021

Great, we'll update the README, thanks!

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

Successfully merging a pull request may close this issue.

3 participants