Skip to content

cmd/go: confusing error for non-existent go source files #48559

Open
@rsc

Description

@rsc
% go build notexist.go
cannot find package "." in:
	/Users/rsc/go/src/notexist.go
% 

For what it's worth, I'm not in /Users/rsc/go/src.
That's just the error looking for a std package named notexist.go.
It should show me an error more like 'no such file notexist.go'.

/cc @bcmills @jayconrod @matloob

Metadata

Metadata

Assignees

No one assigned

    Labels

    BadErrorMessageIssues related compiler error messages that should be better.GoCommandcmd/goNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions