|
|
|
@ -102,8 +102,7 @@ func migrateHistoryLocation(out *output.Output) error { |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
return fmt.Errorf("failed to get data directory: %w", err) |
|
|
|
return fmt.Errorf("failed to get data directory: %w", err) |
|
|
|
} |
|
|
|
} |
|
|
|
// TODO: de-hardcode this
|
|
|
|
historyPath := path.Join(dataDir, datadir.HistoryFileName) |
|
|
|
historyPath := path.Join(dataDir, "history.reshjson") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exists, err := futil.FileExists(historyPath) |
|
|
|
exists, err := futil.FileExists(historyPath) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
@ -149,8 +148,7 @@ func migrateHistoryFormat(out *output.Output) error { |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
return fmt.Errorf("could not get user data directory: %w", err) |
|
|
|
return fmt.Errorf("could not get user data directory: %w", err) |
|
|
|
} |
|
|
|
} |
|
|
|
// TODO: de-hardcode this
|
|
|
|
historyPath := path.Join(dataDir, datadir.HistoryFileName) |
|
|
|
historyPath := path.Join(dataDir, "history.reshjson") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exists, err := futil.FileExists(historyPath) |
|
|
|
exists, err := futil.FileExists(historyPath) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
|