unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#70206] [PATCH 0/2] gnu: Add go-1.22.
@ 2024-04-05  1:03 Imran Iqbal
  2024-04-05  1:23 ` [bug#70206] [PATCH 1/2] " Imran Iqbal
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Imran Iqbal @ 2024-04-05  1:03 UTC (permalink / raw)
  To: 70206; +Cc: Imran Iqbal

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#70206] [PATCH 1/2] gnu: Add go-1.22.
  2024-04-05  1:03 [bug#70206] [PATCH 0/2] gnu: Add go-1.22 Imran Iqbal
@ 2024-04-05  1:23 ` Imran Iqbal
  2024-04-05  1:23 ` [bug#70206] [PATCH 2/2] gnu: Add the Go standard library 1.22 Imran Iqbal
  2024-04-16 18:28 ` bug#70206: [PATCH 0/2] gnu: Add go-1.22 Sharlatan Hellseher
  2 siblings, 0 replies; 4+ messages in thread
From: Imran Iqbal @ 2024-04-05  1:23 UTC (permalink / raw)
  To: 70206; +Cc: Imran Iqbal

* gnu/packages/golang.scm (go-1.22): New variable.

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

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





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#70206] [PATCH 2/2] gnu: Add the Go standard library 1.22.
  2024-04-05  1:03 [bug#70206] [PATCH 0/2] gnu: Add go-1.22 Imran Iqbal
  2024-04-05  1:23 ` [bug#70206] [PATCH 1/2] " Imran Iqbal
@ 2024-04-05  1:23 ` Imran Iqbal
  2024-04-16 18:28 ` bug#70206: [PATCH 0/2] gnu: Add go-1.22 Sharlatan Hellseher
  2 siblings, 0 replies; 4+ messages in thread
From: Imran Iqbal @ 2024-04-05  1:23 UTC (permalink / raw)
  To: 70206; +Cc: Imran Iqbal

* gnu/packages/golang.scm (go-std-1.22): New variable.

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

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





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#70206: [PATCH 0/2] gnu: Add go-1.22.
  2024-04-05  1:03 [bug#70206] [PATCH 0/2] gnu: Add go-1.22 Imran Iqbal
  2024-04-05  1:23 ` [bug#70206] [PATCH 1/2] " Imran Iqbal
  2024-04-05  1:23 ` [bug#70206] [PATCH 2/2] gnu: Add the Go standard library 1.22 Imran Iqbal
@ 2024-04-16 18:28 ` Sharlatan Hellseher
  2 siblings, 0 replies; 4+ messages in thread
From: Sharlatan Hellseher @ 2024-04-16 18:28 UTC (permalink / raw)
  To: 70206-done

[-- Attachment #1: Type: text/plain, Size: 89 bytes --]

Hi,

There is go-1.22 in go-team branch.

It will be merge soon to master.

Thanks.
Oleg

[-- Attachment #2: Type: text/html, Size: 271 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-16 18:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-05  1:03 [bug#70206] [PATCH 0/2] gnu: Add go-1.22 Imran Iqbal
2024-04-05  1:23 ` [bug#70206] [PATCH 1/2] " Imran Iqbal
2024-04-05  1:23 ` [bug#70206] [PATCH 2/2] gnu: Add the Go standard library 1.22 Imran Iqbal
2024-04-16 18:28 ` bug#70206: [PATCH 0/2] gnu: Add go-1.22 Sharlatan Hellseher

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).