diff --git a/src/cmd/go/clean.go b/src/cmd/go/clean.go index ba600d3bb1..8345c9af15 100644 --- a/src/cmd/go/clean.go +++ b/src/cmd/go/clean.go @@ -106,6 +106,8 @@ func clean(p *Package) { if cleaned[p] { return } + cleaned[p] = true + if p.Dir == "" { errorf("can't load package: %v", p.Error) return