diff --git a/pkg/db/db.go b/pkg/db/db.go index 34288711b7a4..fddd3393ea70 100644 --- a/pkg/db/db.go +++ b/pkg/db/db.go @@ -80,6 +80,7 @@ func NewClient(cacheDir string, quiet bool, opts ...Option) *Client { } // Add the schema version as a tag if the tag doesn't exist. + // This is required for backward compatibility. if !strings.Contains(o.dbRepository, ":") { o.dbRepository = fmt.Sprintf("%s:%d", o.dbRepository, db.SchemaVersion) } diff --git a/pkg/javadb/client.go b/pkg/javadb/client.go index 9b2a53d9209a..faa110a8460a 100644 --- a/pkg/javadb/client.go +++ b/pkg/javadb/client.go @@ -84,6 +84,7 @@ func (u *Updater) Update() error { func Init(cacheDir, javaDBRepository string, skip, quiet bool, registryOption ftypes.RegistryOptions) { // Add the schema version as a tag if the tag doesn't exist. + // This is required for backward compatibility. if !strings.Contains(javaDBRepository, ":") { javaDBRepository = fmt.Sprintf("%s:%d", javaDBRepository, db.SchemaVersion) }