Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7e4a1dc

Browse files
committed
fix(cli/server.go): switch to alternate maven repo for postgres binaries
1 parent 5e4050e commit 7e4a1dc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cli/server.go

+2
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.apache.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

+2
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.apache.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)