guix_mirror_bot pushed a commit to branch master
in repository guix.

commit a6d0073aca07e6a91f24e87a744c15b9f45ccc3b
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Jun 10 10:35:44 2025 +0100

    gnu: Add go-9fans-net-go variant.
    
    This variant is to keep go importer healthy when it use with "--insert"
    option and name package according to go.mod import path.
    
    * gnu/packages/golang-xyz.scm (go-9fans-net-go): New variable.
    (go-ninefans-net-go): Inherit from  go-9fans-net-go.
    
    Change-Id: Icda3d830ae4c00f5bc6ae70b6e37c160835b4570
---
 gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index c50c288dac..1a04ed7627 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -118,14 +118,14 @@
 ;;; Libraries:
 ;;;
 
-;; XXX: The package name in Guix uses 'ninefans' instead of '9fans' to
-;; accomodate from a shortcoming of the go-build-system where the `go-inputs'
-;; procedure in the `setup-go-environment' phase uses
-;; `package-name->name+version', which returns 'go' as name for
-;; go-9fans-net-go-acme, which gets removed from the results and thus GOPATH.
-(define-public go-ninefans-net-go
-  (package
-    (name "go-ninefans-net-go")
+(define-public go-9fans-net-go
+  ;; XXX: This variant is to keep go importer healthy with "--insert" option,
+  ;; which places package in alphabetical order and names it accordingly to
+  ;; import path from go.mod file.
+  ;;
+  ;; Use go-ninefans-net-go to include in inputs.
+  (package
+    (name "go-9fans-net-go")
     (version "0.0.7")
     (source
      (origin
@@ -19559,6 +19559,17 @@ that @code{gofmt} is happy with.")
 formatter, and interpreter with bash support.")
     (license license:bsd-3)))
 
+(define-public go-ninefans-net-go
+  ;; XXX: The package name in Guix uses 'ninefans' instead of '9fans' to
+  ;; accomodate from a shortcoming of the go-build-system where the
+  ;; `go-inputs' procedure in the `setup-go-environment' phase uses
+  ;; `package-name->name+version', which returns 'go' as name for
+  ;; go-9fans-net-go-acme, which gets removed from the results and thus
+  ;; GOPATH.
+  (package
+    (inherit go-9fans-net-go)
+    (name "go-ninefans-net-go")))
+
 (define-public go-nullprogram-com-x-optparse
   (package
     (name "go-nullprogram-com-x-optparse")

Reply via email to