Skip to content

cmd/vet: doesn't work when importing a package which is not yet installed #4895

Closed
@MichaelTJones

Description

@MichaelTJones
What steps will reproduce the problem?

my main.go imports a local package:

import (
    "flag"
    "fmt"
    "grid"
    "thing/v36/thing"
    "log"
    "os"
...

which works perfectly forever in go run, go fmt, go ... but recently I ran go vet and
get:

mtj$ go vet main.go
vet: main.go:8:2: could not import thing/v36/thing (can't find import: thing/v36/thing)
exit status 1

(No, it's not really called 'thing' but I'm not prepared to disclose the actual name.)


Which compiler are you using (5g, 6g, 8g, gccgo)?

8g

Which operating system are you using?

Mac OS X

Which version are you using?  (run 'go version')

tip, but this is not new in the tip...has been true for a few days at least

go version devel +655b43c97d76 Sun Feb 24 22:47:22 2013 +0800 darwin/amd64


Please provide any additional information below.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions