]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/dist/test.go
cmd/go: don't install most GOROOT .a files in pkg
[gostls13.git] / src / cmd / dist / test.go
index 1663ff8c94868e4d3678338dfb08318d1d63f878..29a886f4561da022899b45fa48b854dc979785ec 100644 (file)
@@ -161,6 +161,10 @@ func (t *tester) run() {
                        // Instead, we can just check that it is not stale, which may be less
                        // expensive (and is also more likely to catch bugs in the builder
                        // implementation).
+                       // The cache used by dist when building is different from that used when
+                       // running dist test, so rebuild (but don't install) std and cmd to make
+                       // sure packages without install targets are cached so they are not stale.
+                       goCmd("go", "build", "std", "cmd") // make sure dependencies of targets are cached
                        checkNotStale("go", "std", "cmd")
                }
        }