goharbor/harbor · error
only support specific repository name
Error message
only support specific repository name
What it means
Error "only support specific repository name" thrown in goharbor/harbor.
Source
Thrown at src/pkg/reg/adapter/githubcr/adapter.go:152
}
return
}
func (a *adapter) FetchArtifacts(filters []*model.Filter) (resources []*model.Resource, err error) {
pattern := ""
for _, filter := range filters {
if filter.Type == model.FilterTypeName {
pattern = filter.Value.(string)
break
}
}
var repositories []string
// if the pattern of repository name filter is a specific repository name, just returns
// the parsed repositories and will check the existence later when filtering the tags
if paths, ok := util.IsSpecificPath(pattern); ok {
repositories = paths
} else {
err = errors.New("only support specific repository name")
return
}
if len(repositories) == 0 {
return nil, nil
}
var rawResources = make([]*model.Resource, len(repositories))
runner := utils.NewLimitedConcurrentRunner(adp.MaxConcurrency)
for i, r := range repositories {
index := i
repo := r
runner.AddTask(func() error {
artifacts, err := a.listArtifacts(repo, filters)
if err != nil {
return fmt.Errorf("failed to list artifacts of repository %s: %v", repo, err)
}View on GitHub (pinned to 7b2fd08cc5)
When it happens
Trigger: Thrown at src/pkg/reg/adapter/githubcr/adapter.go:152 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of goharbor/harbor@7b2fd08cc5 (2026-08-16).
Data as JSON: /api/errors/33f9ffabe9d9466d.
Report an issue: GitHub.