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: cannot run vendor with any package that has appengine variants #25881

Closed
zombiezen opened this issue Jun 13, 2018 · 1 comment
Closed
Milestone

Comments

@zombiezen
Copy link
Contributor

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

go version go1.10.2 linux/amd64 vgo:2018-02-20.1

Does this issue reproduce with the latest release?

Yes, this occurs at vgo 48532fcbfed81df51d668e6d42180a115efc97ed. Issue introduced in 0b37e81747b0e67da0724ea17de3da7ad998cce0

What did you do?

$ cat > foo.go <<EOF
package main // import "example.com"

import (
        "fmt"

        _ "google.golang.org/appengine"
)

func main() {
        fmt.Println("Hello, World!")
}
EOF
$ touch go.mod
$ vgo vendor

What did you expect to see?

A materialized vendor directory.

What did you see instead?

vgo vendor fails with:

vgo: resolving import "google.golang.org/appengine"
vgo: finding google.golang.org/appengine (latest)
vgo: adding google.golang.org/appengine v1.0.0
vgo: resolving import "appengine"
vgo: import "appengine": unknown module appengine: not a domain name
vgo: resolving import "appengine_internal"
vgo: import "appengine_internal": unknown module appengine_internal: not a domain name
vgo: resolving import "appengine_internal/base"
vgo: import "appengine_internal/base": unknown module appengine_internal/base: not a domain name
vgo: resolving import "github.com/golang/protobuf/proto"
vgo: finding github.com/golang/protobuf (latest)
vgo: adding github.com/golang/protobuf v1.1.0
vgo: resolving import "golang.org/x/net/context"
vgo: finding golang.org/x/net (latest)
vgo: adding golang.org/x/net v0.0.0-20180611182652-db08ff08e862

/cc @rsc

@gopherbot
Copy link

Change https://golang.org/cl/118757 mentions this issue: cmd/go/internal/vgo: ignore appengine imports

@golang golang locked and limited conversation to collaborators Jun 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants