summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-03-19 10:03:44 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-03-29 15:23:57 +0100
commitdeba95e558cbdf3aababbbf0448fea2162d90f78 (patch)
treec71fe1da45885a8ceaab9ba21b3cb11df590a70e /gnu
parent682b4d9b6f0e4bfc13ac875ad51d9722d44bc5b6 (diff)
gnu: Add go-cloud-google-com-go-longrunning.
* gnu/packages/golang-web.scm (go-cloud-google-com-go-longrunning): New variable. (go-cloud-google-com-go)[source] <snippet>: Remove "longrunning" directory. [arguments] <test-subdir>: Rework the list. Change-Id: Iccee534f5f1ff8e2b71b828b3279696012646b96
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/golang-web.scm51
1 files changed, 48 insertions, 3 deletions
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 081007a75f8..c13124f4e17 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -382,10 +382,12 @@ devices.")
;; - cloud.google.com/go/auth
;; - cloud.google.com/go/auth/oauth2adapt
;; - cloud.google.com/go/compute/metadata
+ ;; - cloud.google.com/go/longrunning
;; - cloud.google.com/go/storage
(for-each delete-file-recursively
(list "auth"
"compute/metadata"
+ "longrunning"
"storage"))))))
(build-system go-build-system)
(arguments
@@ -421,15 +423,12 @@ devices.")
"internal/tracecontext"
"internal/uid"
"internal/version"
- "longrunning"
"pubsub/internal/distribution"
"pubsub/internal/scheduler"
"pubsub/internal/testutil"
"pubsub/v2/internal/distribution"
"pubsub/v2/internal/scheduler"
"pubsub/v2/internal/testutil"
- "pubsublite/internal/test"
- "pubsublite/internal/wire"
"rpcreplay"
"spanner/spansql"
"translate")))
@@ -587,6 +586,52 @@ cloud.google.com/go/auth and golang.org/x/oauth2.")
API service accounts for Go.")
(license license:asl2.0)))
+(define-public go-cloud-google-com-go-longrunning
+ (package
+ (name "go-cloud-google-com-go-longrunning")
+ (version "0.8.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/googleapis/google-cloud-go")
+ (commit (go-version->git-ref version #:subdir "longrunning"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1ykr9kj0sbb4w0h190lp9gcxppv18dp0d5ak2g93dky8hjyc2wfa"))
+ (modules '((guix build utils)
+ (ice-9 ftw)
+ (srfi srfi-26)))
+ (snippet #~(begin
+ (define (delete-all-but directory . preserve)
+ (with-directory-excursion directory
+ (let* ((pred (negate (cut member <>
+ (cons* "." ".." preserve))))
+ (items (scandir "." pred)))
+ (for-each (cut delete-file-recursively <>) items))))
+ (delete-all-but "." "longrunning")))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "cloud.google.com/go/longrunning"
+ #:unpack-path "cloud.google.com/go"))
+ (propagated-inputs
+ (list go-cloud-google-com-go
+ go-github-com-googleapis-gax-go-v2
+ go-google-golang-org-api
+ go-google-golang-org-genproto
+ go-google-golang-org-genproto-googleapis-api
+ go-google-golang-org-genproto-googleapis-rpc
+ go-google-golang-org-grpc
+ go-google-golang-org-protobuf))
+ (home-page "https://cloud.google.com/go")
+ (synopsis "Helper library for working with long running operations")
+ (description
+ "Package longrunning supports Long Running Operations for the Google
+Cloud Libraries. See google.golang.org/genproto/googleapis/longrunning for
+its service definition.")
+ (license license:asl2.0)))
+
(define-public go-cloud-google-com-go-storage
(package
(name "go-cloud-google-com-go-storage")