Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit444bd6a

Browse files
fix(cli/server.go): switch to alternate maven repo for postgres binaries (#17451)
Not really guaranteed, but worth a shot.---------Co-authored-by: Danny Kopping <danny@coder.com>
1 parent56ee5d8 commit444bd6a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

‎cli/server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,6 +2160,8 @@ func startBuiltinPostgres(ctx context.Context, cfg config.Root, logger slog.Logg
21602160
embeddedpostgres.DefaultConfig().
21612161
Version(embeddedpostgres.V13).
21622162
BinariesPath(filepath.Join(cfg.PostgresPath(),"bin")).
2163+
// Default BinaryRepositoryURL repo1.maven.org is flaky.
2164+
BinaryRepositoryURL("https://repo.maven.apache.org/maven2").
21632165
DataPath(filepath.Join(cfg.PostgresPath(),"data")).
21642166
RuntimePath(filepath.Join(cfg.PostgresPath(),"runtime")).
21652167
CachePath(cachePath).

‎scripts/embedded-pg/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ func main() {
2424
embeddedpostgres.DefaultConfig().
2525
Version(embeddedpostgres.V16).
2626
BinariesPath(filepath.Join(postgresPath,"bin")).
27+
// Default BinaryRepositoryURL repo1.maven.org is flaky.
28+
BinaryRepositoryURL("https://repo.maven.apache.org/maven2").
2729
DataPath(filepath.Join(postgresPath,"data")).
2830
RuntimePath(filepath.Join(postgresPath,"runtime")).
2931
CachePath(filepath.Join(postgresPath,"cache")).

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp