builder/builder-next/adapters/localinlinecache/inlinecache.go
Function ResolveCacheImporterFunc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func ResolveCacheImporterFunc(sm *session.Manager, resolverFunc docker.RegistryHosts, cs content.Store, rs reference.Store, is imagestore.Store) remotecache.ResolveCacheImporterFunc {
Method localImporter.importInlineCache
has 5 return statements (exceeds 4 allowed). Open
Open
func (li *localImporter) importInlineCache(ctx context.Context, dt []byte, cc solver.CacheExporterTarget) error {
var img image
if err := json.Unmarshal(dt, &img); err != nil {
return err