From 444bd6a21215a144dee148caa8edecf24c06fc81 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Tue, 22 Apr 2025 09:02:35 +0100 Subject: [PATCH] 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 --- cli/server.go | 2 ++ scripts/embedded-pg/main.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cli/server.go b/cli/server.go index 5ea0f4ebbd..39cfa52571 100644 --- a/cli/server.go +++ b/cli/server.go @@ -2160,6 +2160,8 @@ func startBuiltinPostgres(ctx context.Context, cfg config.Root, logger slog.Logg embeddedpostgres.DefaultConfig(). Version(embeddedpostgres.V13). BinariesPath(filepath.Join(cfg.PostgresPath(), "bin")). + // Default BinaryRepositoryURL repo1.maven.org is flaky. + BinaryRepositoryURL("https://repo.maven.apache.org/maven2"). DataPath(filepath.Join(cfg.PostgresPath(), "data")). RuntimePath(filepath.Join(cfg.PostgresPath(), "runtime")). CachePath(cachePath). diff --git a/scripts/embedded-pg/main.go b/scripts/embedded-pg/main.go index 018ec6e68b..aa6de1027f 100644 --- a/scripts/embedded-pg/main.go +++ b/scripts/embedded-pg/main.go @@ -24,6 +24,8 @@ func main() { embeddedpostgres.DefaultConfig(). Version(embeddedpostgres.V16). BinariesPath(filepath.Join(postgresPath, "bin")). + // Default BinaryRepositoryURL repo1.maven.org is flaky. + BinaryRepositoryURL("https://repo.maven.apache.org/maven2"). DataPath(filepath.Join(postgresPath, "data")). RuntimePath(filepath.Join(postgresPath, "runtime")). CachePath(filepath.Join(postgresPath, "cache")).