unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Hilton Chain via Guix-patches via <guix-patches@gnu.org>
To: 61222@debbugs.gnu.org
Cc: Hilton Chain <hako@ultrarare.space>
Subject: [bug#61222] [PATCH 1/2] gnu: Add go-1.20.
Date: Thu, 02 Feb 2023 11:49:37 +0800	[thread overview]
Message-ID: <875yck9166.wl-hako@ultrarare.space> (raw)
In-Reply-To: <handler.61222.B.167530972518074.ack@debbugs.gnu.org>


* gnu/packages/golang.scm (go-1.20): New variable.
---
 gnu/packages/golang.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 93df6cb061..2d5d1dca43 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -889,6 +889,25 @@ (define-public go-1.19
                           '("CONTRIBUTING.md" "PATENTS" "README.md"
                             "SECURITY.md"))))))))))
 
+(define-public go-1.20
+  (package
+    (inherit go-1.19)
+    (name "go")
+    (version "1.20")
+    (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
+                "0a7wjzv14kaqg5l7ambv5zj4rj7sgah9yhcg6k6da6ygm6bs4dv3"))))
+    (native-inputs
+     ;; Go 1.20 and later requires Go 1.17 as the bootstrap toolchain.
+     ;; See `src/cmd/dist/notgo117.go`.
+     (alist-replace "go" (list go-1.17) (package-native-inputs go-1.17)))))
+
 (define-public go go-1.17)
 
 (define make-go-std
-- 
2.39.1





  parent reply	other threads:[~2023-02-02  3:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-02  3:48 [bug#61222] [PATCH 0/2] gnu: Add go-1.20 Hilton Chain via Guix-patches via
     [not found] ` <handler.61222.B.167530972518074.ack@debbugs.gnu.org>
2023-02-02  3:49   ` Hilton Chain via Guix-patches via [this message]
2023-02-02  3:50     ` [bug#61222] [PATCH 2/2] gnu: Add go-std-1.20 Hilton Chain via Guix-patches via
2023-02-09 13:28 ` [bug#61222] [PATCH 0/2] gnu: Add go-1.20 Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875yck9166.wl-hako@ultrarare.space \
    --to=guix-patches@gnu.org \
    --cc=61222@debbugs.gnu.org \
    --cc=hako@ultrarare.space \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).