summaryrefslogtreecommitdiff
path: root/gnu/packages/golang.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2025-08-22 00:04:36 +0300
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-21 09:42:14 +0100
commit61f32bfa7f4f403203fbbb193e71aa4e19a16236 (patch)
treeab43d28c0c2c9022b168fd707ca6ade15e209432 /gnu/packages/golang.scm
parent4bbe22d2e274841d3aba974227f15c7fe74e0b78 (diff)
gnu: go-1.24: Inherit from go-1.22.
* gnu/packages/golang.scm (go-1.24)[arguments]: Replace inherited 'disable-more-tests phase to adjust for changes in the source. [native-inputs]: Rewrite inheriting from go-1.22. [properties]: Add field previously inherited from go-1.23. Change-Id: I4938c7854cba0aa982d7b755c10f255cab81a828 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/golang.scm')
-rw-r--r--gnu/packages/golang.scm26
1 files changed, 24 insertions, 2 deletions
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 859a756ba57..0c53302d4ed 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1134,7 +1134,7 @@ in the style of communicating sequential processes (@dfn{CSP}).")
1134 1134
1135(define-public go-1.24 1135(define-public go-1.24
1136 (package 1136 (package
1137 (inherit go-1.23) 1137 (inherit go-1.22)
1138 (name "go") 1138 (name "go")
1139 (version "1.24.3") 1139 (version "1.24.3")
1140 (source 1140 (source
@@ -1146,9 +1146,31 @@ in the style of communicating sequential processes (@dfn{CSP}).")
1146 (file-name (git-file-name name version)) 1146 (file-name (git-file-name name version))
1147 (sha256 1147 (sha256
1148 (base32 "1b24pdsxrarw22gffv85sghpgvgamafvwwrvvhmyv3hqf89m97zk")))) 1148 (base32 "1b24pdsxrarw22gffv85sghpgvgamafvwwrvvhmyv3hqf89m97zk"))))
1149 (arguments
1150 (substitute-keyword-arguments (package-arguments go-1.22)
1151 ((#:phases phases)
1152 #~(modify-phases #$phases
1153 (replace 'disable-more-tests
1154 (lambda _
1155 #$@(cond
1156 ((target-aarch64?)
1157 ;; https://go-review.googlesource.com/c/go/+/151303
1158 ;; This test is known buggy on aarch64 and is enabled and
1159 ;; disabled upstream with some regularity.
1160 #~((substitute* "src/plugin/plugin_test.go"
1161 (("package plugin_test")
1162 (string-append "// +build !linux linux,!arm64\n\n"
1163 "package plugin_test")))))
1164 (else (list #t)))))))))
1149 (native-inputs 1165 (native-inputs
1150 ;; Go 1.24 and later requires Go 1.22+ as the bootstrap toolchain. 1166 ;; Go 1.24 and later requires Go 1.22+ as the bootstrap toolchain.
1151 (alist-replace "go" (list go-1.22) (package-native-inputs go-1.23))))) 1167 (alist-replace "go" (list go-1.22) (package-native-inputs go-1.22)))
1168 (properties
1169 `((compiler-cpu-architectures
1170 ("aarch64" ,@%go-1.23-arm64-micro-architectures)
1171 ("armhf" ,@%go-1.17-arm-micro-architectures)
1172 ("powerpc64le" ,@%go-1.17-powerpc64le-micro-architectures)
1173 ("x86_64" ,@%go-1.18-x86_64-micro-architectures))))))
1152 1174
1153;; 1175;;
1154;; Default Golang version used in guix/build-system/go.scm to build packages. 1176;; Default Golang version used in guix/build-system/go.scm to build packages.