go/build.Package.Dir (field)

22 uses

	go/build (current package)
		build.go#L410: 	Dir           string   // directory containing package sources
		build.go#L578: 			p.Dir = ctxt.joinPath(srcDir, path)
		build.go#L588: 			if sub, ok := ctxt.hasSubdir(root, p.Dir); ok && !inTestdata(sub) {
		build.go#L599: 			if sub, ok := ctxt.hasSubdir(rootsrc, p.Dir); ok && !inTestdata(sub) {
		build.go#L658: 							p.Dir = dir
		build.go#L701: 						p.Dir = dir
		build.go#L711: 			p.Dir = ctxt.joinPath(ctxt.GOROOT, "src", path)
		build.go#L721: 				p.Dir = dir
		build.go#L737: 					p.Dir = dir
		build.go#L785: 	if IsLocalImport(path) && !ctxt.isDir(p.Dir) {
		build.go#L792: 		return p, fmt.Errorf("cannot find package %q in:\n\t%s", p.ImportPath, p.Dir)
		build.go#L807: 	dirs, err := ctxt.readDir(p.Dir)
		build.go#L839: 			if ctxt.isDir(ctxt.joinPath(p.Dir, d.Name())) {
		build.go#L848: 		info, err := ctxt.matchFile(p.Dir, name, allTags, &p.BinaryOnly, fset)
		build.go#L910: 				Dir:      p.Dir,
		build.go#L930: 					badFile(name, fmt.Errorf("found import comments %q (%s) and %q (%s) in %s", p.ImportComment, firstCommentFile, com, name, p.Dir))
		build.go#L1019: 		return p, &NoGoError{p.Dir}
		build.go#L1209: 	p.Dir = dir
		build.go#L1682: 			if arg, ok = expandSrcDir(arg, di.Dir); !ok {
		build.go#L1691: 			ctxt.makePathsAbsolute(args, di.Dir)

	golang.org/x/tools/internal/gcimporter
		gcimporter.go#L101: 			if bp.Goroot && bp.Dir != "" {
		gcimporter.go#L102: 				filename, ok = lookupGorootExport(bp.Dir)