mirror of https://github.com/golang/go.git
cmd/go: do not ignore DepsErrors in 'go run'
Fixes #3490. R=golang-dev, dave, rsc CC=golang-dev https://golang.org/cl/6040046
This commit is contained in:
parent
44fd1d1a6a
commit
84ce0f7687
|
|
@ -49,6 +49,10 @@ func runRun(cmd *Command, args []string) {
|
|||
if p.Error != nil {
|
||||
fatalf("%s", p.Error)
|
||||
}
|
||||
for _, err := range p.DepsErrors {
|
||||
errorf("%s", err)
|
||||
}
|
||||
exitIfErrors()
|
||||
if p.Name != "main" {
|
||||
fatalf("go run: cannot run non-main package")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue