{"record":{"id":"41c2fc40455b063c","repo":"GoogleContainerTools/skaffold","slug":"walking-workspace-w","errorCode":null,"errorMessage":"walking workspace: %w","messagePattern":"walking workspace: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/skaffold/docker/dependencies.go","lineNumber":148,"sourceCode":"\n\tfts, err := ReadCopyCmdsFromDockerfile(ctx, false, absDockerfilePath, workspace, buildArgs, cfg)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\texcludes, err := readDockerignore(workspace, absDockerfilePath)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"reading .dockerignore: %w\", err)\n\t}\n\n\tdeps := make([]string, 0, len(fts))\n\tfor _, ft := range fts {\n\t\tdeps = append(deps, ft.From)\n\t}\n\n\tfiles, err := WalkWorkspace(workspace, excludes, deps)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"walking workspace: %w\", err)\n\t}\n\n\t// Always add dockerfile even if it's .dockerignored. The daemon will need it anyways.\n\tif !filepath.IsAbs(dockerfilePath) {\n\t\tfiles[dockerfilePath] = true\n\t} else {\n\t\tfiles[absDockerfilePath] = true\n\t}\n\n\t// Ignore .dockerignore\n\tdelete(files, \".dockerignore\")\n\n\tvar dependencies []string\n\tfor file := range files {\n\t\tdependencies = append(dependencies, file)\n\t}\n\tsort.Strings(dependencies)\n","sourceCodeStart":130,"sourceCodeEnd":166,"githubUrl":"https://github.com/GoogleContainerTools/skaffold/blob/a1189de023efc32d4b8e11f395acc678aa555011/pkg/skaffold/docker/dependencies.go#L130-L166","documentation":"Fires in getDependencies when WalkWorkspace fails while enumerating files in the workspace (excluding .dockerignore'd paths) to compute the docker build's dependency set. Typically a filesystem error mid-walk: unreadable directory, dangling symlink handling failure, or a path disappearing during the walk.","triggerScenarios":"Thrown at pkg/skaffold/docker/dependencies.go:148 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check for unreadable directories or permission problems under the workspace","Fix dangling symlinks or unusual filesystem entries in the build context","Tighten the .dockerignore to exclude problematic directories that don't belong in the build context"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a1189de023efc32d4b8e11f395acc678aa555011","analyzedAt":"2026-09-05T12:09:27.064Z","contentChangedAt":"2026-09-05T12:09:27.064Z","schemaVersion":2},"datasetVersion":"2026-09-12T17:17:11.597Z"}