[PATCH 0/2] gnu: Add go-1.22.

  • Done
  • quality assurance status badge
Details
2 participants
  • Imran Iqbal
  • Sharlatan Hellseher
Owner
unassigned
Submitted by
Imran Iqbal
Severity
normal

Debbugs page

I
I
Imran Iqbal wrote on 4 Apr 18:03 -0700
(address . guix-patches@gnu.org)(name . Imran Iqbal)(address . imran@imraniqbal.org)
cover.1712278941.git.imran@imraniqbal.org
These series of commits adds go 1.22.2 to guix. I split it up in two
commits as the git blame showed these packages are added seperately.

Imran Iqbal (2):
gnu: Add go-1.22.
gnu: Add the Go standard library 1.22.

gnu/packages/golang.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)


base-commit: b7ee2e458ac3d218d170b9a66efb7c9abf4bff9e
--
2.44.0
I
I
Imran Iqbal wrote on 4 Apr 18:23 -0700
[PATCH 1/2] gnu: Add go-1.22.
(address . 70206@debbugs.gnu.org)(name . Imran Iqbal)(address . imran@imraniqbal.org)
12d6f19bd1c2ba3ed121bfb2b8e60c374759903b.1712278941.git.imran@imraniqbal.org
* gnu/packages/golang.scm (go-1.22): New variable.

Change-Id: I4e82a06592eb9148c357e6a5b5d56c1a9460e555
---
gnu/packages/golang.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)

Toggle diff (51 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 0f36c6b696..cb6c712a4d 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -45,6 +45,7 @@
;;; Copyright © 2023 Clément Lassieur <clement@lassieur.org>
;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
;;; Copyright © 2024 Greg Hogan <code@greghogan.com>
+;;; Copyright © 2024 Imran Iqbal <imran@imraniqbal.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1114,6 +1115,36 @@ (define-public go-1.21
("api" "share/go/api" ,tests)
("test" "share/go/test" ,tests))))))))))))
+(define-public go-1.22
+ (package
+ (inherit go-1.21)
+ (name "go")
+ (version "1.22.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/golang/go")
+ (commit (string-append "go" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0p6v5dl4mzlrma6v1a26d8zr4csq5mm10d9sdhl3kn9d22vphql1"))))
+ (native-inputs
+ ;; Go 1.22 and 1.23 requires Go 1.20 as the bootstrap toolchain.
+ ;; See 'src/cmd/dist/notgo120.go' in the source code distribution,
+ ;; Also see: https://go.dev/doc/install/source
+ ;; "Going forward, Go version 1.N will require a Go 1.M compiler, where M is N-2
+ ;; rounded down to an even number. Example: Go 1.24 and 1.25 require Go 1.22."
+ (alist-replace "go"
+ (list go-1.20)
+ (package-native-inputs go-1.20)))
+ (arguments
+ (substitute-keyword-arguments (package-arguments go-1.21)
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ ;; Perl test script removed. See: https://github.com/golang/go/commit/ff19f8e7636f0b5797f3b65cee69f41fb650b965
+ (delete 'unpatch-perl-shebangs)))))))
+
(define-public go go-1.17)
(define make-go-std
--
2.44.0
I
I
Imran Iqbal wrote on 4 Apr 18:23 -0700
[PATCH 2/2] gnu: Add the Go standard library 1.22.
(address . 70206@debbugs.gnu.org)(name . Imran Iqbal)(address . imran@imraniqbal.org)
db82dc5fb5484c53b153a87c6111dfd1e72922ce.1712278941.git.imran@imraniqbal.org
* gnu/packages/golang.scm (go-std-1.22): New variable.

Change-Id: I912204dc87266ced6bc7c7651a91319f75316714
---
gnu/packages/golang.scm | 1 +
1 file changed, 1 insertion(+)

Toggle diff (14 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index cb6c712a4d..140cb0dd95 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1188,6 +1188,7 @@ (define-public go-std-1.18 (make-go-std go-1.18))
(define-public go-std-1.19 (make-go-std go-1.19))
(define-public go-std-1.20 (make-go-std go-1.20))
(define-public go-std-1.21 (make-go-std go-1.21))
+(define-public go-std-1.22 (make-go-std go-1.22))
(define-public go-0xacab-org-leap-shapeshifter
(let ((commit "0aa6226582efb8e563540ec1d3c5cfcd19200474")
--
2.44.0
S
S
Sharlatan Hellseher wrote on 16 Apr 11:28 -0700
[PATCH 0/2] gnu: Add go-1.22.
(address . 70206-done@debbugs.gnu.org)
CAO+9K5qpn9FhmEytZMk+XCb=LpOsYYinyhGb1W2ykPG2NKf0OQ@mail.gmail.com
Hi,

There is go-1.22 in go-team branch.

It will be merge soon to master.

Thanks.
Oleg
Attachment: file
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 70206@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 70206
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch