Skip to content

Commit

Permalink
docs: add a comment regarding backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Mar 11, 2024
1 parent f4048b7 commit 91bcb0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 1 addition & 0 deletions pkg/javadb/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 91bcb0a

Please sign in to comment.