Skip to content

x/tools/go/packages: all "no Go files in" errors get assigned to single package as a single error #32755

Closed
@dominikh

Description

@dominikh

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

$ go version
go version go1.12.5 linux/amd64
go version devel +c11f6c4929 Fri Jun 21 21:24:47 2019 +0000 linux/amd64

What did you do?

https://play.golang.org/p/Y0ANYGkISpa

What did you expect to see?

Two packages, sandbox/empty1 and sandbox/empty2, each with one error

What did you see instead?

One package, sandbox/empty2, with one error but whose error message contains two errors for two separate packages.

$ go run foo.go
2019/06/24 20:22:59 sandbox/empty2
2019/06/24 20:22:59 1
2019/06/24 20:22:59 packages.Error{Pos:"", Msg:"go build sandbox/empty2: no Go files in /home/dominikh/prj/src/sandbox/empty2\ngo build sandbox/empty1: no Go files in /home/dominikh/prj/src/sandbox/empty1", Kind:0}

/cc @matloob

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions