Skip to content

Commit

Permalink
Merge pull request #1 from crustio/feat/ignore-migration
Browse files Browse the repository at this point in the history
feat: ignore new version migration
  • Loading branch information
x-wagmi authored Nov 1, 2024
2 parents 8e75382 + 79f2913 commit bd11764
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions repo/fsrepo/fsrepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,11 @@ func open(repoPath string, userConfigFilePath string) (repo.Repo, error) {
return nil, err
}

if RepoVersion > ver {
return nil, ErrNeedMigration
} else if ver > RepoVersion {
// TODO: now skip version migration check
// if ver != 11 && RepoVersion > ver {
// return nil, ErrNeedMigration
// } else
if ver > RepoVersion {
// program version too low for existing repo
return nil, fmt.Errorf(programTooLowMessage, RepoVersion, ver)
}
Expand Down

0 comments on commit bd11764

Please sign in to comment.