{"record":{"id":"83bd8163eb650bb1","repo":"argoproj/argo-workflows","slug":"listobjects-is-currently-not-supported-for-this-ar","errorCode":null,"errorMessage":"ListObjects is currently not supported for this artifact type, but it will be in a future version","messagePattern":"ListObjects is currently not supported for this artifact type, but it will be in a future version","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"workflow/artifacts/git/git.go","lineNumber":218,"sourceCode":"\t\t\tAuth:              auth,\n\t\t}); err != nil {\n\t\t\treturn fmt.Errorf(\"failed to update submodules: %w\", err)\n\t\t}\n\t}\n\treturn nil\n}\n\nfunc isFetchErr(err error) bool {\n\treturn err != nil && err.Error() != \"already up-to-date\"\n}\n\nfunc (g *ArtifactDriver) OpenStream(ctx context.Context, a *wfv1.Artifact) (io.ReadCloser, error) {\n\t// todo: this is a temporary implementation which loads file to disk first\n\treturn common.LoadToStream(ctx, a, g)\n}\n\nfunc (g *ArtifactDriver) ListObjects(ctx context.Context, artifact *wfv1.Artifact) ([]string, error) {\n\treturn nil, fmt.Errorf(\"ListObjects is currently not supported for this artifact type, but it will be in a future version\")\n}\n\nfunc (g *ArtifactDriver) IsDirectory(ctx context.Context, artifact *wfv1.Artifact) (bool, error) {\n\treturn false, argoerrors.New(argoerrors.CodeNotImplemented, \"IsDirectory currently unimplemented for Git\")\n}\n","sourceCodeStart":200,"sourceCodeEnd":224,"githubUrl":"https://github.com/argoproj/argo-workflows/blob/35bff19146f5a6ada77468c431f2624bd577e373/workflow/artifacts/git/git.go#L200-L224","documentation":"git ArtifactDriver.ListObjects is not implemented — it unconditionally returns this error. Any code path that tries to enumerate objects for a git artifact (e.g. artifact GC listing or browsing) hits this permanent capability gap.","triggerScenarios":"Thrown at workflow/artifacts/git/git.go:218 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Do not call ListObjects for git artifacts; treat git as non-listable","Use an object-store artifact type when listing is required"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35bff19146f5a6ada77468c431f2624bd577e373","analyzedAt":"2026-09-03T19:34:35.908Z","contentChangedAt":"2026-09-03T19:34:35.908Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}