{"record":{"id":"7052dfad6f447d84","repo":"dagger/dagger","slug":"invalid-s-ref-q-w","errorCode":null,"errorMessage":"invalid %s ref %q: %w","messagePattern":"invalid (.+?) ref %q: %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/lockfile_update.go","lineNumber":212,"sourceCode":"\toperation string,\n\tinputs []any,\n\tlatest bool,\n) (ociLockInputs, error) {\n\tvar parsed ociLockInputs\n\trequired, options, err := workspace.ParseLookupInputs(inputs)\n\tif err != nil {\n\t\treturn parsed, fmt.Errorf(\"invalid %s inputs %v: %w\", operation, inputs, err)\n\t}\n\tif len(required) != 1 {\n\t\treturn parsed, fmt.Errorf(\"invalid %s inputs %v\", operation, inputs)\n\t}\n\tref, ok := required[0].(string)\n\tif !ok || ref == \"\" {\n\t\treturn parsed, fmt.Errorf(\"invalid %s ref %v\", operation, required[0])\n\t}\n\trefName, err := reference.ParseNormalizedNamed(ref)\n\tif err != nil {\n\t\treturn parsed, fmt.Errorf(\"invalid %s ref %q: %w\", operation, ref, err)\n\t}\n\tif latest && !reference.IsNameOnly(refName) {\n\t\treturn parsed, fmt.Errorf(\"invalid %s tagged ref %q\", operation, ref)\n\t}\n\tif !latest {\n\t\tif _, ok := refName.(reference.NamedTagged); !ok {\n\t\t\treturn parsed, fmt.Errorf(\"invalid %s untagged ref %q\", operation, ref)\n\t\t}\n\t}\n\tparsed.ref = ref\n\n\tfor name, value := range options {\n\t\tswitch name {\n\t\tcase \"protocol\":\n\t\t\tprotocol, ok := value.(string)\n\t\t\tif !ok {\n\t\t\t\treturn parsed, fmt.Errorf(\"invalid %s registry protocol %v\", operation, value)\n\t\t\t}","sourceCodeStart":194,"sourceCodeEnd":230,"githubUrl":"https://github.com/dagger/dagger/blob/82ba2681dbe30d3547a1dc50ea495900ab5b6047/core/lockfile_update.go#L194-L230","documentation":"parseOCILockInputs: reference.ParseNormalizedNamed rejected the image reference recorded in the lock inputs. The reference string is not a valid normalized Docker image reference.","triggerScenarios":"Thrown at core/lockfile_update.go:212 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct the image reference syntax","Regenerate the lock entry from a valid reference","Check the wrapped error for the specific parse problem"],"exampleFix":null,"handlingStrategy":"validation","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"}