{"id":"724b527cbec02032","repo":"docker/cli","slug":"no-signed-tags-to-remove","errorCode":null,"errorMessage":"no signed tags to remove","messagePattern":"no signed tags to remove","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/docker-trust/trust/revoke.go","lineNumber":109,"sourceCode":"}\n\nfunc revokeSingleSig(notaryRepo client.Repository, tag string) error {\n\treleasedTargetWithRole, err := notaryRepo.GetTargetByName(tag, trust.ReleasesRole, data.CanonicalTargetsRole)\n\tif err != nil {\n\t\treturn err\n\t}\n\treleasedTarget := releasedTargetWithRole.Target\n\treturn getSignableRolesForTargetAndRemove(releasedTarget, notaryRepo)\n}\n\nfunc revokeAllSigs(notaryRepo client.Repository) error {\n\treleasedTargetWithRoleList, err := notaryRepo.ListTargets(trust.ReleasesRole, data.CanonicalTargetsRole)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif len(releasedTargetWithRoleList) == 0 {\n\t\treturn errors.New(\"no signed tags to remove\")\n\t}\n\n\t// we need all the roles that signed each released target so we can remove from all roles.\n\tfor _, releasedTargetWithRole := range releasedTargetWithRoleList {\n\t\t// remove from all roles\n\t\tif err := getSignableRolesForTargetAndRemove(releasedTargetWithRole.Target, notaryRepo); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\treturn nil\n}\n\n// get all the roles that signed the target and removes it from all roles.\nfunc getSignableRolesForTargetAndRemove(releasedTarget client.Target, notaryRepo client.Repository) error {\n\tsignableRoles, err := trust.GetSignableRoles(notaryRepo, &releasedTarget)\n\tif err != nil {\n\t\treturn err\n\t}","sourceCodeStart":91,"sourceCodeEnd":127,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cmd/docker-trust/trust/revoke.go#L91-L127","documentation":"Error \"no signed tags to remove\" thrown in docker/cli.","triggerScenarios":"Thrown at cmd/docker-trust/trust/revoke.go:109 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"e9452d6e785f6e365712b9d71bd7517591773c86","analyzedAt":"2026-08-01T07:09:22.474Z","schemaVersion":2}