go/build.Context.GOROOT (field)

28 uses

	go/build (current package)
		build.go#L37: 	GOROOT string // Go root
		build.go#L227: 		if p == "" || p == ctxt.GOROOT {
		build.go#L259: 	if ctxt.GOROOT != "" && ctxt.Compiler != "gccgo" {
		build.go#L260: 		dir := ctxt.joinPath(ctxt.GOROOT, "src")
		build.go#L305: 	c.GOROOT = pathpkg.Clean(runtime.GOROOT())
		build.go#L586: 		if ctxt.GOROOT != "" {
		build.go#L587: 			root := ctxt.joinPath(ctxt.GOROOT, "src")
		build.go#L591: 				p.Root = ctxt.GOROOT
		build.go#L603: 				if ctxt.GOROOT != "" && ctxt.Compiler != "gccgo" {
		build.go#L604: 					if dir := ctxt.joinPath(ctxt.GOROOT, "src", sub); ctxt.isDir(dir) {
		build.go#L675: 			if ctxt.Compiler != "gccgo" && searchVendor(ctxt.GOROOT, true) {
		build.go#L686: 		if ctxt.GOROOT != "" {
		build.go#L693: 				_, gorootFirst = ctxt.hasSubdir(ctxt.GOROOT, srcDir)
		build.go#L696: 				dir := ctxt.joinPath(ctxt.GOROOT, "src", path)
		build.go#L699: 					binaryOnly = !isDir && mode&AllowBinary != 0 && pkga != "" && ctxt.isFile(ctxt.joinPath(ctxt.GOROOT, pkga))
		build.go#L703: 						p.Root = ctxt.GOROOT
		build.go#L710: 		if ctxt.Compiler == "gccgo" && goroot.IsStandardPackage(ctxt.GOROOT, ctxt.Compiler, path) {
		build.go#L711: 			p.Dir = ctxt.joinPath(ctxt.GOROOT, "src", path)
		build.go#L713: 			p.Root = ctxt.GOROOT
		build.go#L731: 		if ctxt.GOROOT != "" && tried.goroot == "" {
		build.go#L732: 			dir := ctxt.joinPath(ctxt.GOROOT, "src", path)
		build.go#L735: 				binaryOnly = !isDir && mode&AllowBinary != 0 && pkga != "" && ctxt.isFile(ctxt.joinPath(ctxt.GOROOT, pkga))
		build.go#L739: 					p.Root = ctxt.GOROOT
		build.go#L1116: 		if _, ok := ctxt.hasSubdir(filepath.Join(ctxt.GOROOT, "src"), absSrcDir); ok {
		build.go#L1122: 	if ctxt.GOROOT != "" {
		build.go#L1123: 		dir := ctxt.joinPath(ctxt.GOROOT, "src", path)
		build.go#L1185: 		"GOROOT="+ctxt.GOROOT,

	golang.org/x/tools/internal/gcimporter
		gcimporter.go#L56: 				cmd.Dir = build.Default.GOROOT