Skip to content

Commit 444bd6a

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 parent 56ee5d8 commit 444bd6a

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy