{"record":{"id":"8f11d4ed2c9d3dad","repo":"dagger/dagger","slug":"check-workspace-config-at-s-w","errorCode":null,"errorMessage":"check workspace config at %s: %w","messagePattern":"check workspace config at (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/schema/workspace_migrate.go","lineNumber":686,"sourceCode":"\t\t\treturn true\n\t\t}\n\t}\n\treturn false\n}\n\nfunc workspaceMigrationHasExplicitConfigAncestor(\n\tctx context.Context,\n\tstatFS core.StatFS,\n\troot string,\n\tdir string,\n) (bool, error) {\n\troot = filepath.Clean(root)\n\tdir = filepath.Clean(dir)\n\tfor {\n\t\tif dir == root || strings.HasPrefix(dir, root+string(filepath.Separator)) {\n\t\t\t_, exists, err := core.StatFSExists(ctx, statFS, filepath.Join(dir, workspace.ConfigFileName))\n\t\t\tif err != nil {\n\t\t\t\treturn false, fmt.Errorf(\"check workspace config at %s: %w\", dir, err)\n\t\t\t}\n\t\t\tif exists {\n\t\t\t\treturn true, nil\n\t\t\t}\n\t\t}\n\t\tif dir == root {\n\t\t\treturn false, nil\n\t\t}\n\t\tnext := filepath.Dir(dir)\n\t\tif next == dir {\n\t\t\treturn false, nil\n\t\t}\n\t\tdir = next\n\t}\n}\n\nfunc (s *workspaceSchema) workspaceMigrationChangeset(\n\tctx context.Context,","sourceCodeStart":668,"sourceCodeEnd":704,"githubUrl":"https://github.com/dagger/dagger/blob/82ba2681dbe30d3547a1dc50ea495900ab5b6047/core/schema/workspace_migrate.go#L668-L704","documentation":"Stat-ing for a workspace config file (workspace.json / dagger workspace config) at an ancestor directory failed with a non-not-exist error while checking whether an explicit config owns migration there.","triggerScenarios":"Thrown at core/schema/workspace_migrate.go:686 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped stat error at the named directory","Fix filesystem access issues on the host path"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"82ba2681dbe30d3547a1dc50ea495900ab5b6047","analyzedAt":"2026-09-05T07:21:37.930Z","contentChangedAt":"2026-09-05T07:21:37.930Z","schemaVersion":2},"datasetVersion":"2026-09-12T12:17:11.808Z"}