summaryrefslogtreecommitdiff
path: root/modify_go.env.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-05 02:18:27 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-05 02:18:27 +0000
commit84c1ee60a4e647e675dea9bb4653412c912b6e7d (patch)
tree4040bb756c366a599b470b858acbe639768202da /modify_go.env.patch
parent47d013e07846a08e7b7faef56f19f2413b4692fa (diff)
automatic import of golangopeneuler24.03_LTS
Diffstat (limited to 'modify_go.env.patch')
-rw-r--r--modify_go.env.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/modify_go.env.patch b/modify_go.env.patch
new file mode 100644
index 0000000..de7fa82
--- /dev/null
+++ b/modify_go.env.patch
@@ -0,0 +1,27 @@
+From d6e201910aa29262851c9274a4cd3645022d3539 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Alejandro=20S=C3=A1ez?= <asm@redhat.com>
+Date: Tue, 9 Apr 2024 10:05:46 +0200
+Subject: [PATCH] Modify environment variables defaults
+
+- Set GOTOOLCHAIN to local
+- Set GOAMD64 to v2
+---
+ go.env | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/go.env b/go.env
+index 6ff2b921d4..aadcda023b 100644
+--- a/go.env
++++ b/go.env
+@@ -9,4 +9,7 @@ GOSUMDB=sum.golang.org
+
+ # Automatically download newer toolchains as directed by go.mod files.
+ # See https://go.dev/doc/toolchain for details.
+-GOTOOLCHAIN=auto
++GOTOOLCHAIN=local
++
++# The AMD64 baseline for RHEL9 is v2.
++GOAMD64=v2
+--
+2.44.0
+