summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2025-12-29 19:26:28 +0200
committerEfraim Flashner <efraim@flashner.co.il>2026-01-04 13:04:22 +0200
commite5c2ab2a95d73399e6d404df401acb888b9a2a41 (patch)
treeb04cc426176a7112a42c18f027618a127eb63bac /gnu
parent486b322f3dfb92a1bfc640c0081fcc59bfcc8a62 (diff)
gnu: Add go-1.26.
* gnu/packages/golang.scm (go-1.26, go-std-1.26): New variables. Change-Id: I13cc52a2d00e8c12b308e42e214ca25c9bb5b345
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/golang.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index b0a1287bdf9..83cc1040fe2 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1160,6 +1160,37 @@ in the style of communicating sequential processes (@dfn{CSP}).")
1160 (string-append all "\n t.Skip(\"golang.org/issue/75720\")\n")))))) 1160 (string-append all "\n t.Skip(\"golang.org/issue/75720\")\n"))))))
1161 '()))))))) 1161 '())))))))
1162 1162
1163(define-public go-1.26
1164 (package
1165 (inherit go-1.24)
1166 (name "go")
1167 (version "1.26rc1")
1168 (source
1169 (origin
1170 (method git-fetch)
1171 (uri (git-reference
1172 (url "https://github.com/golang/go")
1173 (commit (string-append "go" version))))
1174 (file-name (git-file-name name version))
1175 (sha256
1176 (base32 "1a837mgsfiq3rqnp67kgw83hvq8p61j1yafhlqw4yzp78bz67sdf"))))
1177 (arguments
1178 (substitute-keyword-arguments (package-arguments go-1.24)
1179 ((#:phases phases)
1180 #~(modify-phases #$phases
1181 ;; There is no real discussion on the issue among humans, a lot
1182 ;; of gopherbot updates and it's closed without final resolution.
1183 ;; https://github.com/golang/go/issues/73977
1184 (add-after 'unpack 'skip-TestSynctest-tests
1185 (lambda _
1186 (substitute* "src/runtime/synctest_test.go"
1187 (("TestSynctest\\(.*" all)
1188 (string-append all "\n t.Skip(\"golang.org/issue/73977\")\n")))))))))
1189 (native-inputs
1190 ;; Go 1.26 and later requires Go 1.24.6+ as the bootstrap toolchain.
1191 ;; TODO: Switch this to go-1.24 when go@1.24 is updated.
1192 (alist-replace "go" (list go-1.25) (package-native-inputs go-1.25)))))
1193
1163;; 1194;;
1164;; Default Golang version used in guix/build-system/go.scm to build packages. 1195;; Default Golang version used in guix/build-system/go.scm to build packages.
1165;; 1196;;
@@ -1206,6 +1237,7 @@ in the style of communicating sequential processes (@dfn{CSP}).")
1206(define-public go-std-1.23 (make-go-std go-1.23)) 1237(define-public go-std-1.23 (make-go-std go-1.23))
1207(define-public go-std-1.24 (make-go-std go-1.24)) 1238(define-public go-std-1.24 (make-go-std go-1.24))
1208(define-public go-std-1.25 (make-go-std go-1.25)) 1239(define-public go-std-1.25 (make-go-std go-1.25))
1240(define-public go-std-1.26 (make-go-std go-1.26))
1209 1241
1210;;; 1242;;;
1211;;; Avoid adding new packages to the end of this file. To reduce the chances 1243;;; Avoid adding new packages to the end of this file. To reduce the chances