diff options
author | Sharlatan Hellseher <[email protected]> | 2025-01-09 10:40:46 +0000 |
---|---|---|
committer | Sharlatan Hellseher <[email protected]> | 2025-01-21 23:47:48 +0000 |
commit | 12b99d2854e7097e4ef51a8728da5466a9a3fd34 (patch) | |
tree | 341f9d96c6919b0ee95f2a2e0aee539ce6c8be3f | |
parent | 379574af851641a521bb5273c89805713b1dc64d (diff) |
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
-rw-r--r-- | gnu/packages/golang-web.scm | 51 |
1 files changed, 37 insertions, 14 deletions
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 2977a902b9..61c73c218f 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -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.") (license license:asl2.0))) -(define-public go-github-com-google-go-github +(define-public go-github-com-google-go-github-v31 (package - (name "go-github-com-google-go-github") - (version "26.1.3") + (name "go-github-com-google-go-github-v31") + (version "31.0.0") (source (origin (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)))) (file-name (git-file-name name version)) (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) (arguments - `(#:tests? #f ;application/octet-stream instead of text/plain - #:import-path "github.com/google/go-github/v26/github" - #:unpack-path "github.com/google/go-github/v26")) + (list + #:skip-build? #t + #: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 (list go-github-com-google-go-querystring go-golang-org-x-crypto @@ -3152,7 +3170,7 @@ GitHub API v3.") ;; For chezmoi-1.8.10 (define-public go-github-com-google-go-github-v33 (package - (inherit go-github-com-google-go-github) + (inherit go-github-com-google-go-github-v31) (name "go-github-com-google-go-github-v33") (version "33.0.0") (source @@ -3163,14 +3181,19 @@ GitHub API v3.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (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 (substitute-keyword-arguments - (package-arguments go-github-com-google-go-github) - ((#:unpack-path _ "github.com/google/go-github/v26") - "github.com/google/go-github/v33") - ((#:import-path _ "github.com/google/go-github/v26/github") - "github.com/google/go-github/v33/github"))))) + (package-arguments go-github-com-google-go-github-v31) + ((#:import-path _) "github.com/google/go-github/v33"))))) (define-public go-github-com-google-go-querystring (package |