-
Notifications
You must be signed in to change notification settings - Fork 943
chore: update golang to 1.24.1 #17035
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
5df49f9
83e79be
57a47e0
8187c9e
5aaf404
d7160ae
3c3aa21
4710808
2bcb38a
651d489
77b2908
226e838
02fd64a
3d07833
75be2c3
2b19287
ee44d98
f8af6a8
3cf7102
527df65
7d11352
59e1b9c
bb5aa17
0b3571a
7f93228
792b4b5
a4f441a
5caf54d
d9b665c
7e0ceec
1530bfb
9ae5514
e2e1e17
f3f5755
9b0a218
d3581a8
1bb7942
31311d3
3b93057
3a4ac1e
38de0cf
3afeb90
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,25 +82,25 @@ func main() { | |
_, _ = fmt.Fprintf(os.Stderr, "Init database at version %q\n", migrateFromVersion) | ||
if err := migrations.UpWithFS(conn, migrateFromFS); err != nil { | ||
friendlyError(os.Stderr, err, migrateFromVersion, migrateToVersion) | ||
os.Exit(1) | ||
panic("") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems weird There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i guess There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good |
||
} | ||
|
||
_, _ = fmt.Fprintf(os.Stderr, "Migrate to version %q\n", migrateToVersion) | ||
if err := migrations.UpWithFS(conn, migrateToFS); err != nil { | ||
friendlyError(os.Stderr, err, migrateFromVersion, migrateToVersion) | ||
os.Exit(1) | ||
panic("") | ||
|
||
|
||
_, _ = fmt.Fprintf(os.Stderr, "Dump schema at version %q\n", migrateToVersion) | ||
dumpBytesAfter, err := dbtestutil.PGDumpSchemaOnly(postgresURL) | ||
if err != nil { | ||
friendlyError(os.Stderr, err, migrateFromVersion, migrateToVersion) | ||
os.Exit(1) | ||
panic("") | ||
} | ||
|
||
if diff := cmp.Diff(string(dumpBytesAfter), string(stripGenPreamble(expectedSchemaAfter))); diff != "" { | ||
friendlyError(os.Stderr, xerrors.Errorf("Schema differs from expected after migration: %s", diff), migrateFromVersion, migrateToVersion) | ||
os.Exit(1) | ||
panic("") | ||
} | ||
_, _ = fmt.Fprintf(os.Stderr, "OK\n") | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.