mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-19 01:01:14 +02:00
[cherry-pick]fix accessory import issue (#19056)
fix accessory import issue fixes #19041 The issuse was introduced by https://github.com/goharbor/harbor/pull/17087. To move the import to main since the anonymous imports only allowed at main in go-cilint. Fixes it: To add the anonymous imports at the jobservice main since the gc job needs to remove accessory when to delete an artifact Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
9151435129
commit
e767fe21e9
@ -32,6 +32,8 @@ import (
|
|||||||
"github.com/goharbor/harbor/src/lib/cache"
|
"github.com/goharbor/harbor/src/lib/cache"
|
||||||
cfgLib "github.com/goharbor/harbor/src/lib/config"
|
cfgLib "github.com/goharbor/harbor/src/lib/config"
|
||||||
tracelib "github.com/goharbor/harbor/src/lib/trace"
|
tracelib "github.com/goharbor/harbor/src/lib/trace"
|
||||||
|
_ "github.com/goharbor/harbor/src/pkg/accessory/model/base"
|
||||||
|
_ "github.com/goharbor/harbor/src/pkg/accessory/model/cosign"
|
||||||
_ "github.com/goharbor/harbor/src/pkg/config/inmemory"
|
_ "github.com/goharbor/harbor/src/pkg/config/inmemory"
|
||||||
_ "github.com/goharbor/harbor/src/pkg/config/rest"
|
_ "github.com/goharbor/harbor/src/pkg/config/rest"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user