]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: be clear that import loops are bad
authorRuss Cox <rsc@golang.org>
Sat, 1 Sep 2012 14:34:58 +0000 (10:34 -0400)
committerRuss Cox <rsc@golang.org>
Sat, 1 Sep 2012 14:34:58 +0000 (10:34 -0400)
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

src/cmd/go/pkg.go

index 62533b3e018fec53c4b8fb2de20bf50572ab6fd2..c9c4e2d779b24a6980eb1aa8caedaa56f12a60dd 100644 (file)
@@ -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