1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-16 12:00:35 +02:00

gnu: go-github-com-google-go-github: Update to 31.0.0.

This is a bare minimal version required for any other inheritances,
upstream introduces a new import path for each major version.

* gnu/packages/golang-web.scm (go-github-com-google-go-github): Update
to 31.0.0 and rename variable to go-github-com-google-go-github-v31.
[source] <snippet>: Delete 2 stand alone submodules.
[arguments] <skip-build?>: No go files in project's root.
<import-path>: Adjust to the module's new path.
<unpack-path>: Remove as redundant.
<phases>: Add 'remove-examples.
(go-github-com-google-go-github-v33): Inherit.
[source] <snippet>: Delete 2 stand alone submodules.
<import-path>: Adjust to the module's new path.
<unpack-path>: Remove as redundant.

Change-Id: I345774192fb091630151eadcb1448bb8cf0f8303
This commit is contained in:
Sharlatan Hellseher 2025-01-09 10:40:46 +00:00
parent 379574af85
commit 12b99d2854
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3120,10 +3120,10 @@ replacement for memcached in many cases. It provides a data loading mechanism
with caching and de-duplication that works across a set of peer processes.") with caching and de-duplication that works across a set of peer processes.")
(license license:asl2.0))) (license license:asl2.0)))
(define-public go-github-com-google-go-github (define-public go-github-com-google-go-github-v31
(package (package
(name "go-github-com-google-go-github") (name "go-github-com-google-go-github-v31")
(version "26.1.3") (version "31.0.0")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -3132,12 +3132,30 @@ with caching and de-duplication that works across a set of peer processes.")
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "0x0zz1vcmllp6r6l2qin9b2llm5cxbf6n84rf99h8wrmhvzs2ipi")))) (base32 "0bcybmr341hnp8k630pi4dcgia7561yzqc874l4c3nl4bc9rkh5j"))
(modules '((guix build utils)))
(snippet
#~(begin
;; Submodules with their own go.mod files and packaged separately:
;;
;; - github.com/google/go-github/scrape
;; - github.com/google/go-github/update-urls
(delete-file-recursively "scrape")
(delete-file-recursively "update-urls")))))
(build-system go-build-system) (build-system go-build-system)
(arguments (arguments
`(#:tests? #f ;application/octet-stream instead of text/plain (list
#:import-path "github.com/google/go-github/v26/github" #:skip-build? #t
#:unpack-path "github.com/google/go-github/v26")) #:import-path "github.com/google/go-github/v31"
;; repos_releases_test.go:449: Header.Get("Content-Type") returned
;; "application/octet-stream", want "text/plain; charset=utf-8"
#:test-flags #~(list "-skip" "TestRepositoriesService_UploadReleaseAsset")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'remove-examples
(lambda* (#:key tests? import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(delete-file-recursively "example")))))))
(propagated-inputs (propagated-inputs
(list go-github-com-google-go-querystring (list go-github-com-google-go-querystring
go-golang-org-x-crypto go-golang-org-x-crypto
@ -3152,7 +3170,7 @@ GitHub API v3.")
;; For chezmoi-1.8.10 ;; For chezmoi-1.8.10
(define-public go-github-com-google-go-github-v33 (define-public go-github-com-google-go-github-v33
(package (package
(inherit go-github-com-google-go-github) (inherit go-github-com-google-go-github-v31)
(name "go-github-com-google-go-github-v33") (name "go-github-com-google-go-github-v33")
(version "33.0.0") (version "33.0.0")
(source (source
@ -3163,14 +3181,19 @@ GitHub API v3.")
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1nzwgvaa9k1ky3sfynib6nhalam9dx66h5lxff334m9kk3rf5nn0")))) (base32 "1nzwgvaa9k1ky3sfynib6nhalam9dx66h5lxff334m9kk3rf5nn0"))
(modules '((guix build utils)))
(snippet
#~(begin
;; Submodules with their own go.mod files and packaged separately:
;;
;; - github.com/google/go-github/scrape
(delete-file-recursively "scrape")
(delete-file-recursively "update-urls")))))
(arguments (arguments
(substitute-keyword-arguments (substitute-keyword-arguments
(package-arguments go-github-com-google-go-github) (package-arguments go-github-com-google-go-github-v31)
((#:unpack-path _ "github.com/google/go-github/v26") ((#:import-path _) "github.com/google/go-github/v33")))))
"github.com/google/go-github/v33")
((#:import-path _ "github.com/google/go-github/v26/github")
"github.com/google/go-github/v33/github")))))
(define-public go-github-com-google-go-querystring (define-public go-github-com-google-go-querystring
(package (package