[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
225/401: gnu: go-github-com-jcmturner-rpc: Fix import path.
From: |
guix-commits |
Subject: |
225/401: gnu: go-github-com-jcmturner-rpc: Fix import path. |
Date: |
Thu, 26 Dec 2024 19:31:01 -0500 (EST) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit fb188c12fe961abcd5bd64890db6a44c3d624c28
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Thu Dec 19 10:15:01 2024 +0000
gnu: go-github-com-jcmturner-rpc: Fix import path.
These changes are group togather to resolve inheritance and import
issues with Golang modules containing subdirs.
* gnu/packages/golang-web.scm (go-github-com-jcmturner-rpc): Downgrade
to 1.1.0 to fix inheritance.
[arguments] <import-path>: Adjust it to follow expected module path.
<tests?>: Activate them.
[propagated-inputs]: Remove go-golang-org-x-net and
go-github-com-stretchr-testify.
[native-inputs]: Add go-github-com-stretchr-testify.
(go-github-com-jcmturner-rpc-v2, go-gopkg-in-jcmturner-rpc-v1,
go-gopkg-in-jcmturner-rpc-v2): New variables.
(go-github-com-jcmturner-rpc-v2-ndr,
go-github-com-jcmturner-rpc-v2-mstypes): Delete variables.
(go-github-com-jcmturner-gokrb5-v8):
[propagated-inputs]: Remove go-github-com-jcmturner-rpc-v2-mstypes and
go-github-com-jcmturner-rpc-v2-ndr; add
go-github-com-jcmturner-rpc-v2.
Change-Id: I4138856270db32e99468d7f7de76ca756b3b017f
Change-Id: I60dc42285ec4079029f5f9a54810acf75842a431
---
gnu/packages/golang-web.scm | 92 +++++++++++++++++++++++++++++----------------
1 file changed, 59 insertions(+), 33 deletions(-)
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index ac273c1336..e264c7c9b7 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -3086,8 +3086,7 @@ authenticated identities and their attributes.")
go-github-com-jcmturner-dnsutils-v2
go-github-com-jcmturner-gofork
go-github-com-jcmturner-goidentity-v6
- go-github-com-jcmturner-rpc-v2-mstypes
- go-github-com-jcmturner-rpc-v2-ndr
+ go-github-com-jcmturner-rpc-v2
go-golang-org-x-crypto
go-golang-org-x-net))
(home-page "https://github.com/jcmturner/gokrb5";)
@@ -3113,27 +3112,25 @@ Microsoft AD PAC authorization data.")
(define-public go-github-com-jcmturner-rpc
(package
(name "go-github-com-jcmturner-rpc")
- (version "2.0.3")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/jcmturner/rpc";)
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1nm4j2nwcszghldw39rwdx2hr56i1lybfpv33y4gd67w6qcqbpsi"))))
+ (version "1.1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jcmturner/rpc";)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0hkmvf8qdcifnzym8kv1xhq7lq0wpr0i6gzff159lh9xn0wfg175"))))
(build-system go-build-system)
(arguments
- '(#:import-path "github.com/jcmturner/rpc"
- ;; Source-only package.
- #:tests? #f
- #:phases
- (modify-phases %standard-phases
- ;; Source-only package.
- (delete 'build))))
- (propagated-inputs
- (list go-golang-org-x-net go-github-com-stretchr-testify))
+ (list
+ #:import-path "gopkg.in/jcmturner/rpc.v1"
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'build)))) ; no go files in project's root
+ (native-inputs
+ (list go-github-com-stretchr-testify))
(home-page "https://github.com/jcmturner/rpc";)
(synopsis "Remote Procedure Call libraries")
(description
@@ -3143,21 +3140,29 @@ Procedure libraries, presented in
Call}.")
(license license:asl2.0)))
-(define-public go-github-com-jcmturner-rpc-v2-ndr
+(define-public go-github-com-jcmturner-rpc-v2
(package
(inherit go-github-com-jcmturner-rpc)
- (name "go-github-com-jcmturner-rpc-v2-ndr")
- (arguments
- `(#:import-path "github.com/jcmturner/rpc/v2/ndr"
- #:unpack-path "github.com/jcmturner/rpc"))))
-
-(define-public go-github-com-jcmturner-rpc-v2-mstypes
- (package
- (inherit go-github-com-jcmturner-rpc)
- (name "go-github-com-jcmturner-rpc-v2-mstypes")
+ (name "go-github-com-jcmturner-rpc-v2")
+ (version "2.0.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jcmturner/rpc";)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1nm4j2nwcszghldw39rwdx2hr56i1lybfpv33y4gd67w6qcqbpsi"))))
(arguments
- `(#:import-path "github.com/jcmturner/rpc/v2/mstypes"
- #:unpack-path "github.com/jcmturner/rpc"))))
+ (list
+ #:import-path "github.com/jcmturner/rpc/v2"
+ #:unpack-path "github.com/jcmturner/rpc"
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'build)))) ; no go files in project's root
+ (propagated-inputs
+ (list go-golang-org-x-net))))
(define-public go-github-com-jhillyerd-enmime
(package
@@ -6819,6 +6824,27 @@ go.opentelemetry.io/otel/trace.")
(description "This package is a Go Implementation of WireGuard.")
(license license:expat)))
+;; This to satisfy alternative import path.
+(define-public go-gopkg-in-jcmturner-rpc-v1
+ (package
+ (inherit go-github-com-jcmturner-rpc)
+ (name "go-gopkg-in-jcmturner-rpc-v1")
+ (arguments
+ (substitute-keyword-arguments
+ (package-arguments go-github-com-jcmturner-rpc)
+ ((#:import-path _) "gopkg.in/jcmturner/rpc.v1")))))
+
+;; This to satisfy alternative import path.
+(define-public go-gopkg-in-jcmturner-rpc-v2
+ (package
+ (inherit go-github-com-jcmturner-rpc-v2)
+ (name "go-gopkg-in-jcmturner-rpc-v2")
+ (arguments
+ (substitute-keyword-arguments
+ (package-arguments go-github-com-jcmturner-rpc-v2)
+ ((#:tests? _ #t) #f)
+ ((#:import-path _) "gopkg.in/jcmturner/rpc.v2")))))
+
;; XXX: This repository has been archived by the owner on Feb 27, 2023. It is
;; now read-only and it is DEPRECATED.
(define-public go-gopkg-in-square-go-jose-v2
- 138/401: gnu: Add go-github-com-jackc-fake., (continued)
- 138/401: gnu: Add go-github-com-jackc-fake., guix-commits, 2024/12/26
- 132/401: gnu: go-go-uber-org-zap: Update to 1.27.0., guix-commits, 2024/12/26
- 159/401: gnu: Add go-github-com-ipfs-go-ds-flatfs., guix-commits, 2024/12/26
- 157/401: gnu: go-github-com-hashicorp-hcl: Fix build., guix-commits, 2024/12/26
- 174/401: gnu: Add go-gitlab-com-yawning-utls-git., guix-commits, 2024/12/26
- 171/401: gnu: Add go-gitlab-com-yawning-bsaes-git., guix-commits, 2024/12/26
- 203/401: gnu: Add go-github-com-getkin-kin-openapi., guix-commits, 2024/12/26
- 199/401: gnu: go-github-com-mailru-easyjson: Update to 0.9.0., guix-commits, 2024/12/26
- 185/401: gnu: go-github-com-twpayne-go-xdg-v3: Fix bulid., guix-commits, 2024/12/26
- 188/401: gnu: go-go-mongodb-org-mongo-driver: Simplify package., guix-commits, 2024/12/26
- 225/401: gnu: go-github-com-jcmturner-rpc: Fix import path.,
guix-commits <=
- 232/401: gnu: go-github-com-jacobsa-reqtrace: Update to 0.0.0-20150505043853-245c9e0234cb., guix-commits, 2024/12/26
- 233/401: gnu: go-github-com-jacobsa-reqtrace: Move to golang-check., guix-commits, 2024/12/26
- 246/401: gnu: Add go-github-com-jacobsa-syncutil., guix-commits, 2024/12/26
- 247/401: gnu: go-golang-org-x-net: Update to 0.33.0., guix-commits, 2024/12/26
- 243/401: gnu: Add go-github-com-maxatome-go-testdeep., guix-commits, 2024/12/26
- 01/401: gnu: Remove go-github-com-calmh-xdr., guix-commits, 2024/12/26
- 02/401: gnu: Remove go-github-com-dustin-gojson., guix-commits, 2024/12/26
- 03/401: gnu: go-github-com-russross-blackfriday: Move to golang-xyz., guix-commits, 2024/12/26
- 14/401: gnu: go-github-com-spf13-cast: Move to golang-xyz., guix-commits, 2024/12/26
- 22/401: gnu: go-github-com-twpayne-go-vfs: Move to golang-xyz., guix-commits, 2024/12/26