Commit 508bfda6 authored by Russ Cox's avatar Russ Cox

cmd/go: be clear that import loops are bad

There was mail on golang-nuts a few weeks ago
from someone who understood the message perfectly
and knew he had a cyclic dependency but assumed
that Go, like Python or Java, was supposed to handle it.

R=golang-dev, bradfitz, dave
CC=golang-dev
https://golang.org/cl/6488069
parent c1c02796
......@@ -250,7 +250,7 @@ func reusePackage(p *Package, stk *importStack) *Package {
if p.Error == nil {
p.Error = &PackageError{
ImportStack: stk.copy(),
Err: "import loop",
Err: "import cycle not allowed",
}
}
p.Incomplete = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment