Skip to content

x/tools/cmd/gotype: (can't find import: ) [GO15VENDOREXPERIMENT=1] #14215

Closed
@runningmaster

Description

@runningmaster

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

$ go version
go version go1.6rc1 linux/amd64

2 What operating system and processor architecture are you using?

$ cat /etc/redhat-release 
Fedora release 23 (Twenty Three)

$ lscpu
Architecture:          x86_64
...

3 What did you do?

Project for test:
$GOPATH/src/main/main.go
$GOPATH/src/vendor/github.com/bradfitz/iter/iter.go

$ cat main.go 
package main

import (
    "fmt"
    "github.com/bradfitz/iter"
)

func main() {
    for i := range iter.N(10) {
        fmt.Println(i)
    }
}

4 What did you expect to see?

Nothing (that's OK)

$ gotype main

5 What did you see instead?

$ go env && go version && gotype main
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/dmitriy/Development/go-proj"
GORACE=""
GOROOT="/home/dmitriy/Development/go1.6rc1"
GOTOOLDIR="/home/dmitriy/Development/go1.6rc1/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
go version go1.6rc1 linux/amd64
main/main.go:5:2: could not import github.com/bradfitz/iter (can't find import: )
main/main.go:9:17: undeclared name: iter
main/main.go:9:17: cannot range over iter.N(10) (invalid operand)

Note: other tools from Go Meta Linter work OK.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions