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

golang-github-minishift-minishift - Fedora packages github.com/cheggaaa/pb but minishift requires gopkg.in/cheggaaa/pb.v1 #5

Open
marcindulak opened this issue Apr 3, 2017 · 3 comments

Comments

@marcindulak
Copy link
Owner

The release of cheggaaa/pb required by minishift is https://github.com/cheggaaa/pb/releases/tag/v1.0.7 (see https://github.com/minishift/minishift/blob/a0a53180478ec02b3b4811560f2fc0168c298298/glide.lock)

while Fedora 25 currently provides:

dnf provides "golang(github.com/cheggaaa/pb)"
#golang-github-cheggaaa-pb-devel-0-0.3.gitda1f27a.fc25.noarch : Console progress bar for Golang

go testfails:

+ go test -compiler gc -ldflags '' github.com/minishift/minishift/cmd/minishift/cmd
../../BUILDROOT/golang-github-minishift-minishift-1.0.0-0.1.gite05dbec.fc25.x86_64/usr/share/gocode/src/github.com/minishift/minishift/pkg/minikube/cluster/cluster.go:42:2: cannot find package "gopkg.in/cheggaaa/pb.v1" in any of:
	/usr/lib/golang/src/gopkg.in/cheggaaa/pb.v1 (from $GOROOT)
	/root/rpmbuild/BUILDROOT/golang-github-minishift-minishift-1.0.0-0.1.gite05dbec.fc25.x86_64/usr/share/gocode/src/gopkg.in/cheggaaa/pb.v1 (from $GOPATH)
	/usr/share/gocode/src/gopkg.in/cheggaaa/pb.v1

Suggested solution requires either:

1A. use github.com/cheggaaa/pb instead of gopkg.in/cheggaaa/pb.v1 in minishift
1B. update golang-github-cheggaaa-pb in Fedora/EPEL7 to version at least 1.0.7 (preferably the latest available)

or:

2A. package gopkg.in/cheggaaa/pb.v1 in Fedora in addition to github.com/cheggaaa/pb

@ingvagabund
Copy link

golang-github-cheggaaa-pb should be extended with the new import path prefix instead of creating a new package.

@marcindulak
Copy link
Owner Author

You mean something like providing the link gopkg.in/cheggaaa/pb.v1 to github.com/cheggaaa/pb under /usr/share/gocode/src/?

rpm -qf /usr/share/gocode/src/gopkg.in
file /usr/share/gocode/src/gopkg.in is not owned by any package

What will happen when gopkg.in/cheggaaa/pb.v2 is released, and we still want to keep gopkg.in/cheggaaa/pb.v1?

@ingvagabund
Copy link

You can check spec file at [1] to see how it handles both v1 and v2 versions.

[1] http://pkgs.fedoraproject.org/cgit/rpms/golang-gopkg-yaml.git/tree/golang-gopkg-yaml.spec#n41

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