Skip to content

cmd/compile: confusing message when go.mod file and vendor folder both present #44149

@dotaheor

Description

@dotaheor

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

$ go version
go version go1.15.8 linux/amd64
go version go1.16rc1 linux/amd64

What did you do?

package main

import _ "aaa"

func main() {
}

What did you expect to see?

package aaa is not in GOROOT (GOROOT/src/aaa)

What did you see instead?

cannot find package "." in:
	ProjectRoot/vendor/aaa

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions