You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cat a.go
package p
import "missing"
$ command go version
go version devel +4da84adc0c Mon Jul 9 19:35:21 2018 +0000 linux/amd64
$ command go list -export -e a.go
go build missing: no Go files in
command-line-arguments
I expect the fix is something like this:
--- a/src/cmd/go/internal/load/pkg.go
+++ b/src/cmd/go/internal/load/pkg.go
@@ -185,6 +185,9 @@ func (e *NoGoError) Error() string {
// to appear at the end of error message.
return "no non-test Go files in " + e.Package.Dir
}
+ if e.Package.Dir == "" {
+ return "no directory for package " + e.Package.ImportPath
+ }
return "no Go files in " + e.Package.Dir
}
The text was updated successfully, but these errors were encountered:
I expect the fix is something like this:
The text was updated successfully, but these errors were encountered: