]> Cypherpunks repositories - gostls13.git/commit
go/build: move isStandardPackage to new internal/goroot package
authorIan Lance Taylor <iant@golang.org>
Tue, 25 Sep 2018 19:49:22 +0000 (12:49 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 25 Sep 2018 22:07:43 +0000 (22:07 +0000)
commitb83ef36d6acb351ac50c5c7199fd683fb5226983
treecb21aaac6ef7d9a4723b9adfdd9c3d64a681f6e4
parent23f75541946884167364a5cc513699661dcfe8ff
go/build: move isStandardPackage to new internal/goroot package

The module code in cmd/go sometimes needs to know whether it is
looking at a standard package, and currently uses gc-specific code for
that. This CL moves the existing isStandardPackage code in the
go/build package, which works for both gc and gccgo, into a new
internal/goroot package so that cmd/go can call it. The changes to
cmd/go will be in a subsequent CL.

Change-Id: Ic1ce4c022a932c6b3e99fa062631577085cc6ecb
Reviewed-on: https://go-review.googlesource.com/137435
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/go/build/build.go
src/go/build/deps_test.go
src/go/build/gc.go
src/go/build/gccgo.go
src/internal/goroot/gc.go [new file with mode: 0644]
src/internal/goroot/gccgo.go [new file with mode: 0644]