go/build.Package.Dir (field)

20 uses

	go/build (current package)
		build.go#L395: 	Dir           string   // directory containing package sources
		build.go#L563: 			p.Dir = ctxt.joinPath(srcDir, path)
		build.go#L573: 			if sub, ok := ctxt.hasSubdir(root, p.Dir); ok && !inTestdata(sub) {
		build.go#L584: 			if sub, ok := ctxt.hasSubdir(rootsrc, p.Dir); ok && !inTestdata(sub) {
		build.go#L643: 							p.Dir = dir
		build.go#L686: 						p.Dir = dir
		build.go#L696: 			p.Dir = ctxt.joinPath(ctxt.GOROOT, "src", path)
		build.go#L706: 				p.Dir = dir
		build.go#L722: 					p.Dir = dir
		build.go#L770: 	if IsLocalImport(path) && !ctxt.isDir(p.Dir) {
		build.go#L777: 		return p, fmt.Errorf("cannot find package %q in:\n\t%s", path, p.Dir)
		build.go#L792: 	dirs, err := ctxt.readDir(p.Dir)
		build.go#L813: 			if ctxt.isDir(ctxt.joinPath(p.Dir, d.Name())) {
		build.go#L829: 		info, err := ctxt.matchFile(p.Dir, name, allTags, &p.BinaryOnly, fset)
		build.go#L885: 				Dir:      p.Dir,
		build.go#L906: 					badFile(fmt.Errorf("found import comments %q (%s) and %q (%s) in %s", p.ImportComment, firstCommentFile, com, name, p.Dir))
		build.go#L995: 		return p, &NoGoError{p.Dir}
		build.go#L1185: 	p.Dir = dir
		build.go#L1668: 			if arg, ok = expandSrcDir(arg, di.Dir); !ok {
		build.go#L1677: 			ctxt.makePathsAbsolute(args, di.Dir)