{"record":{"id":"862fc2ce57563f26","repo":"goharbor/harbor","slug":"fail-to-match-tag-pattern-error-w","errorCode":null,"errorMessage":"fail to match tag pattern, error=%w","messagePattern":"fail to match tag pattern, error=%w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/pkg/reg/adapter/volcenginecr/artifact_registry.go","lineNumber":167,"sourceCode":"\n\tfor idx, repo := range nsRepos {\n\t\ti := idx\n\t\tnsRepo := repo\n\t\trunner.AddTask(func() error {\n\t\t\trepoArr := strings.SplitN(nsRepo, \"/\", 2)\n\t\t\t// note list tag don't tell different oci types now\n\t\t\tcandidateTags, err := a.listAllTags(repoArr[0], repoArr[1])\n\t\t\tif err != nil {\n\t\t\t\tlog.Error(\"fail to list all tags\", \"nsRepo\", nsRepo)\n\t\t\t\treturn fmt.Errorf(\"volcengineCR fail to list all tags %w\", err)\n\t\t\t}\n\n\t\t\ttags := make([]string, 0)\n\t\t\tif tagsPattern != \"\" {\n\t\t\t\tfor _, candidateTag := range candidateTags {\n\t\t\t\t\tok, err := util.Match(tagsPattern, candidateTag)\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\treturn fmt.Errorf(\"fail to match tag pattern, error=%w\", err)\n\t\t\t\t\t}\n\t\t\t\t\tif ok {\n\t\t\t\t\t\ttags = append(tags, candidateTag)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttags = candidateTags\n\t\t\t}\n\n\t\t\tlog.Debug(\"filter tags\")\n\n\t\t\tif len(tags) > 0 {\n\t\t\t\trawResources[i] = &model.Resource{\n\t\t\t\t\tType:     model.ResourceTypeImage,\n\t\t\t\t\tRegistry: a.registry,\n\t\t\t\t\tMetadata: &model.ResourceMetadata{\n\t\t\t\t\t\tRepository: &model.Repository{\n\t\t\t\t\t\t\tName: nsRepo,","sourceCodeStart":149,"sourceCodeEnd":185,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/pkg/reg/adapter/volcenginecr/artifact_registry.go#L149-L185","documentation":"Error \"fail to match tag pattern, error=%w\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/pkg/reg/adapter/volcenginecr/artifact_registry.go:167 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}