- Keep the GOPROXY and GOSUMDB defaults but add additional explanatory comments. - Restore GOTOOLCHAIN=local - Set GOEXPERIMENT=nodwarf5
42 lines
1.5 KiB
Diff
42 lines
1.5 KiB
Diff
From 39432f71436c41201450a523dc41035c92d27569 Mon Sep 17 00:00:00 2001
|
|
From: Maxwell G <maxwell@gtmx.me>
|
|
Date: Thu, 24 Jul 2025 12:23:59 -0500
|
|
Subject: [PATCH] Modify go.env
|
|
|
|
---
|
|
go.env | 17 ++++++++++++++++-
|
|
1 file changed, 16 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/go.env b/go.env
|
|
index 6ff2b92..5508440 100644
|
|
--- a/go.env
|
|
+++ b/go.env
|
|
@@ -4,9 +4,24 @@
|
|
|
|
# Use the Go module mirror and checksum database by default.
|
|
# See https://proxy.golang.org for details.
|
|
+#
|
|
+# NOTE(downstream): We used to disable the Google Go proxy with GOPROXY=direct and
|
|
+# disable the GOSUMDB for historical and priavcy reasons, but it caused severe
|
|
+# performance degradations, so we reverted to the default upstream configuration.
|
|
+# as of https://fedoraproject.org/wiki/Changes/golang1.25.
|
|
+# To preserve the previous behavior, set "GOPROXY=direct" and "GOSUMDB=off".
|
|
GOPROXY=https://proxy.golang.org,direct
|
|
GOSUMDB=sum.golang.org
|
|
|
|
# Automatically download newer toolchains as directed by go.mod files.
|
|
# See https://go.dev/doc/toolchain for details.
|
|
-GOTOOLCHAIN=auto
|
|
+#
|
|
+# NOTE(downstream): We change this default from auto to local so that the
|
|
+# distribution-packaged Go toolchain is always used and go doesn't
|
|
+# automatically download pre-compiled alternative versions.
|
|
+GOTOOLCHAIN=local
|
|
+
|
|
+# NOTE(downstream): https://sourceware.org/bugzilla/show_bug.cgi?id=33204
|
|
+# The dwarf5 data emitted by default in Go 1.25+ is incompatible with debugedit
|
|
+# and breaks debugdata collection.
|
|
+GOEXPERIMENT=nodwarf5
|
|
--
|
|
2.50.1
|
|
|