{"record":{"id":"fc24d4d6f8ac2158","repo":"GoogleContainerTools/skaffold","slug":"no-build-artifact-for-q","errorCode":null,"errorMessage":"no build artifact for %q","messagePattern":"no build artifact for %q","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/skaffold/debug/apply_transforms.go","lineNumber":35,"sourceCode":"package debug\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"strings\"\n\n\t\"github.com/GoogleContainerTools/skaffold/v2/pkg/skaffold/debug/types\"\n\t\"github.com/GoogleContainerTools/skaffold/v2/pkg/skaffold/docker\"\n\t\"github.com/GoogleContainerTools/skaffold/v2/pkg/skaffold/graph\"\n\t\"github.com/GoogleContainerTools/skaffold/v2/pkg/skaffold/output/log\"\n\t\"github.com/GoogleContainerTools/skaffold/v2/pkg/skaffold/runner/runcontext\"\n)\n\nvar ConfigRetriever = func(ctx context.Context, image string, builds []graph.Artifact, registries map[string]bool) (ImageConfiguration, error) {\n\tif artifact := findArtifact(image, builds); artifact != nil {\n\t\treturn RetrieveImageConfiguration(ctx, artifact, registries)\n\t}\n\treturn ImageConfiguration{}, fmt.Errorf(\"no build artifact for %q\", image)\n}\n\n// findArtifact finds the corresponding artifact for the given image.\n// If `builds` is empty, then treat all `image` images as a build artifact.\nfunc findArtifact(image string, builds []graph.Artifact) *graph.Artifact {\n\tif len(builds) == 0 {\n\t\tlog.Entry(context.TODO()).Debugf(\"No build artifacts specified: using image as-is %q\", image)\n\t\treturn &graph.Artifact{ImageName: image, Tag: image}\n\t}\n\tfor _, artifact := range builds {\n\t\tif image == artifact.ImageName || image == artifact.Tag {\n\t\t\tlog.Entry(context.TODO()).Debugf(\"Found artifact for image %q\", image)\n\t\t\treturn &artifact\n\t\t}\n\t}\n\treturn nil\n}\n","sourceCodeStart":17,"sourceCodeEnd":53,"githubUrl":"https://github.com/GoogleContainerTools/skaffold/blob/a1189de023efc32d4b8e11f395acc678aa555011/pkg/skaffold/debug/apply_transforms.go#L17-L53","documentation":"Fires in the debug configurator when a container references an image (by name or tag) that does not match any of the artifacts produced by the current build list, so no ImageConfiguration (entrypoint, env, etc.) can be retrieved for debugging transforms.","triggerScenarios":"Thrown at pkg/skaffold/debug/apply_transforms.go:35 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the image in the manifest matches an artifact defined in skaffold.yaml's build section (by imageName or tag)","Run `skaffold build` first so artifacts/tags exist and are known to skaffold","For images not built by skaffold, confirm they exist locally or in the remote registry so config can be fetched"],"exampleFix":null,"handlingStrategy":"validation","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"}