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

x/vgo: fails to resolve etcd clientv3 dependency #26075

Closed
mcluseau opened this issue Jun 27, 2018 · 1 comment
Closed

x/vgo: fails to resolve etcd clientv3 dependency #26075

mcluseau opened this issue Jun 27, 2018 · 1 comment
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@mcluseau
Copy link

mcluseau commented Jun 27, 2018

What version of Go are you using (go version)?

go version go1.10.2 linux/amd64

Does this issue reproduce with the latest release?

yes, tried the latest vgo

What operating system and processor architecture are you using (go env)?

GOOS="linux"
GOARCH="amd64"

What did you do?

main.go:

package main

import (
	"fmt"

	"github.com/coreos/etcd/clientv3"
)

func main() {
	fmt.Printf("%+v\n", clientv3.Config{})
}

Dockerfile:

from golang:1.10.2-alpine
run apk update && apk add git
run go get golang.org/x/vgo
add main.go /go/src/test-vgo/
run cd /go/src/test-vgo && touch go.mod && vgo mod -vendor

What did you expect to see?

vgo picking the real latest version of github.com/coreos/etcd and resolving the dependencies.

What did you see instead?

Step 5/5 : RUN cd /go/src/test-vgo && touch go.mod && vgo mod -vendor
 ---> Running in 2f29131c6f09
vgo: resolving import "github.com/coreos/etcd/clientv3"
vgo: finding github.com/coreos/etcd/clientv3 latest
vgo: finding github.com/coreos/etcd (latest)
vgo: adding github.com/coreos/etcd v0.5.0-alpha.5
[...]
vgo: import "test-vgo" ->
	import "github.com/coreos/etcd/clientv3" [/go/src/mod/github.com/coreos/etcd@v0.5.0-alpha.5/clientv3]: open /go/src/mod/github.com/coreos/etcd@v0.5.0-alpha.5/clientv3: no such file or directory
vgo: import "github.com/coreos/etcd/clientv3" [/go/src/mod/github.com/coreos/etcd@v0.5.0-alpha.5/clientv3]: open /go/src/mod/github.com/coreos/etcd@v0.5.0-alpha.5/clientv3: no such file or directory
@gopherbot gopherbot added this to the vgo milestone Jun 27, 2018
@oiooj oiooj added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jun 27, 2018
@rsc
Copy link
Contributor

rsc commented Jul 6, 2018

Duplicate of #26238.

@rsc rsc closed this as completed Jul 6, 2018
@golang golang locked and limited conversation to collaborators Jul 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

4 participants