diff --git a/misc/dist/bindist.go b/misc/dist/bindist.go index 754bd280c234e4be2c984034c3f1d3ae0bce8250..5bb3c8be13ce58d2348ddcc637826fd6dc1977d7 100644 --- a/misc/dist/bindist.go +++ b/misc/dist/bindist.go @@ -424,15 +424,7 @@ func (b *Build) godoc() error { // go get the godoc package. // The go tool knows to install to $GOROOT/bin. _, err := b.run(b.gopath, filepath.Join(b.root, "bin", "go"), "get", godocPath) - if err != nil { - return err - } - - // Copy templates from go.tools/cmd/godoc/template to GOROOT/lib/godoc. - return cpDir( - filepath.Join(b.root, "lib", "godoc"), - filepath.Join(b.gopath, "src", filepath.FromSlash(godocPath), "template"), - ) + return err } func (b *Build) tour() error {