diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-03-19 10:03:44 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-03-29 15:23:57 +0100 |
| commit | deba95e558cbdf3aababbbf0448fea2162d90f78 (patch) | |
| tree | c71fe1da45885a8ceaab9ba21b3cb11df590a70e | |
| parent | 682b4d9b6f0e4bfc13ac875ad51d9722d44bc5b6 (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
| -rw-r--r-- | gnu/packages/golang-web.scm | 51 |
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.") | |||
| 382 | ;; - cloud.google.com/go/auth | 382 | ;; - cloud.google.com/go/auth |
| 383 | ;; - cloud.google.com/go/auth/oauth2adapt | 383 | ;; - cloud.google.com/go/auth/oauth2adapt |
| 384 | ;; - cloud.google.com/go/compute/metadata | 384 | ;; - cloud.google.com/go/compute/metadata |
| 385 | ;; - cloud.google.com/go/longrunning | ||
| 385 | ;; - cloud.google.com/go/storage | 386 | ;; - cloud.google.com/go/storage |
| 386 | (for-each delete-file-recursively | 387 | (for-each delete-file-recursively |
| 387 | (list "auth" | 388 | (list "auth" |
| 388 | "compute/metadata" | 389 | "compute/metadata" |
| 390 | "longrunning" | ||
| 389 | "storage")))))) | 391 | "storage")))))) |
| 390 | (build-system go-build-system) | 392 | (build-system go-build-system) |
| 391 | (arguments | 393 | (arguments |
| @@ -421,15 +423,12 @@ devices.") | |||
| 421 | "internal/tracecontext" | 423 | "internal/tracecontext" |
| 422 | "internal/uid" | 424 | "internal/uid" |
| 423 | "internal/version" | 425 | "internal/version" |
| 424 | "longrunning" | ||
| 425 | "pubsub/internal/distribution" | 426 | "pubsub/internal/distribution" |
| 426 | "pubsub/internal/scheduler" | 427 | "pubsub/internal/scheduler" |
| 427 | "pubsub/internal/testutil" | 428 | "pubsub/internal/testutil" |
| 428 | "pubsub/v2/internal/distribution" | 429 | "pubsub/v2/internal/distribution" |
| 429 | "pubsub/v2/internal/scheduler" | 430 | "pubsub/v2/internal/scheduler" |
| 430 | "pubsub/v2/internal/testutil" | 431 | "pubsub/v2/internal/testutil" |
| 431 | "pubsublite/internal/test" | ||
| 432 | "pubsublite/internal/wire" | ||
| 433 | "rpcreplay" | 432 | "rpcreplay" |
| 434 | "spanner/spansql" | 433 | "spanner/spansql" |
| 435 | "translate"))) | 434 | "translate"))) |
| @@ -587,6 +586,52 @@ cloud.google.com/go/auth and golang.org/x/oauth2.") | |||
| 587 | API service accounts for Go.") | 586 | API service accounts for Go.") |
| 588 | (license license:asl2.0))) | 587 | (license license:asl2.0))) |
| 589 | 588 | ||
| 589 | (define-public go-cloud-google-com-go-longrunning | ||
| 590 | (package | ||
| 591 | (name "go-cloud-google-com-go-longrunning") | ||
| 592 | (version "0.8.0") | ||
| 593 | (source | ||
| 594 | (origin | ||
| 595 | (method git-fetch) | ||
| 596 | (uri (git-reference | ||
| 597 | (url "https://github.com/googleapis/google-cloud-go") | ||
| 598 | (commit (go-version->git-ref version #:subdir "longrunning")))) | ||
| 599 | (file-name (git-file-name name version)) | ||
| 600 | (sha256 | ||
| 601 | (base32 "1ykr9kj0sbb4w0h190lp9gcxppv18dp0d5ak2g93dky8hjyc2wfa")) | ||
| 602 | (modules '((guix build utils) | ||
| 603 | (ice-9 ftw) | ||
| 604 | (srfi srfi-26))) | ||
| 605 | (snippet #~(begin | ||
| 606 | (define (delete-all-but directory . preserve) | ||
| 607 | (with-directory-excursion directory | ||
| 608 | (let* ((pred (negate (cut member <> | ||
| 609 | (cons* "." ".." preserve)))) | ||
| 610 | (items (scandir "." pred))) | ||
| 611 | (for-each (cut delete-file-recursively <>) items)))) | ||
| 612 | (delete-all-but "." "longrunning"))))) | ||
| 613 | (build-system go-build-system) | ||
| 614 | (arguments | ||
| 615 | (list | ||
| 616 | #:import-path "cloud.google.com/go/longrunning" | ||
| 617 | #:unpack-path "cloud.google.com/go")) | ||
| 618 | (propagated-inputs | ||
| 619 | (list go-cloud-google-com-go | ||
| 620 | go-github-com-googleapis-gax-go-v2 | ||
| 621 | go-google-golang-org-api | ||
| 622 | go-google-golang-org-genproto | ||
| 623 | go-google-golang-org-genproto-googleapis-api | ||
| 624 | go-google-golang-org-genproto-googleapis-rpc | ||
| 625 | go-google-golang-org-grpc | ||
| 626 | go-google-golang-org-protobuf)) | ||
| 627 | (home-page "https://cloud.google.com/go") | ||
| 628 | (synopsis "Helper library for working with long running operations") | ||
| 629 | (description | ||
| 630 | "Package longrunning supports Long Running Operations for the Google | ||
| 631 | Cloud Libraries. See google.golang.org/genproto/googleapis/longrunning for | ||
| 632 | its service definition.") | ||
| 633 | (license license:asl2.0))) | ||
| 634 | |||
| 590 | (define-public go-cloud-google-com-go-storage | 635 | (define-public go-cloud-google-com-go-storage |
| 591 | (package | 636 | (package |
| 592 | (name "go-cloud-google-com-go-storage") | 637 | (name "go-cloud-google-com-go-storage") |
