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")).