Lines Matching full:workspace
37 // should be a relative path from the workspace root to the file within
38 // the bazel workspace.
65 workspace := pathParts[1]
67 if path := runfiles.index.Get(workspace, pathInsideWorkspace); path != "" {
73 // Search the main workspace.
74 if runfiles.workspace != "" {
75 mainPath := filepath.Join(runfiles.dir, runfiles.workspace, path)
169 // Workspace is the bazel workspace the file came from. For example,
171 Workspace string member
173 // ShortPath is a relative, slash-separated path from the workspace root
191 haveWorkspaces := strings.HasSuffix(runfiles.dir, ".runfiles") && runfiles.workspace != ""
203 var workspace, shortPath string
208 workspace, shortPath = rel[:i], rel[i+1:]
211 workspace, shortPath = "", rel
214 list = append(list, RunfileEntry{Workspace: workspace, ShortPath: shortPath, Path: path})
227 // TestWorkspace returns the name of the Bazel workspace for this test.
234 if runfiles.workspace != "" {
235 return runfiles.workspace, nil
245 runfiles.workspace = w
263 if runfiles.workspace == "" {
264 return "", errors.New("could not locate runfiles workspace")
266 return filepath.Join(runfiles.dir, runfiles.workspace), nil
280 // named <target>.runfiles, with a subdirectory for each workspace.
283 // workspace is workspace where the binary or test was built.
284 workspace string
286 // workspaces is a list of other workspace names.
308 workspace: entry.Workspace,
314 func (i *index) Get(workspace string, shortPath string) string {
316 workspace: workspace,
331 workspace string member
388 entry.Workspace = entry.ShortPath[:i]
394 entry.Workspace = entry.ShortPath[:i]
404 runfiles.workspace = os.Getenv("TEST_WORKSPACE")
420 if runfiles.workspace == "" {
421 runfiles.workspace = filepath.Base(dir)