[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
37/172: gnu: go-github-com-golang-groupcache: Fix build.
From: |
guix-commits |
Subject: |
37/172: gnu: go-github-com-golang-groupcache: Fix build. |
Date: |
Mon, 21 Oct 2024 17:30:27 -0400 (EDT) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit 15f71bfd30567e874f1b1af07ed758b12c6d1ee3
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Sep 13 14:00:33 2024 +0100
gnu: go-github-com-golang-groupcache: Fix build.
* gnu/packages/golang-web.scm (go-github-com-golang-groupcache): Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files.
Change-Id: I69f1df0a64176d3a0483ebf38840302d7e5a5d18
---
gnu/packages/golang-web.scm | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 0f194b7046..57c5430d57 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -1916,7 +1916,28 @@ from CloudFlare's github.com/cloudflare/cfssl/revoke.")
(base32 "07amgr8ji4mnq91qbsw2jlcmw6hqiwdf4kzfdrj8c4b05w4knszc"))))
(build-system go-build-system)
(arguments
- (list #:import-path "github.com/golang/groupcache"))
+ (list
+ #:import-path "github.com/golang/groupcache"
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; TODO: Implement it in go-build-system.
+ ;;
+ ;; This happens due to Golang can't determine the valid directory of
+ ;; the module of embed file which is symlinked during setup
+ ;; environment phase, but easy resolved after coping file from the
+ ;; store to the build directory of the current package, see details
+ ;; in Golang source:
+ ;;
+ ;; - URL: <https://github.com/golang/go/blob/>
+ ;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454
+ ;; - file: src/cmd/go/internal/load/pkg.go#L2059
+ (add-after 'unpack 'fix-embed-files
+ (lambda _
+ (for-each (lambda (file)
+ (let ((file-store-path (readlink file)))
+ (delete-file file)
+ (copy-recursively file-store-path file)))
+ (find-files "src" ".*(editions_defaults.binpb)$")))))))
(propagated-inputs
(list go-github-com-golang-protobuf))
(home-page "https://github.com/golang/groupcache")
- 15/172: gnu: go-github-com-aws-aws-sdk-go-v2: Update to 1.30.5., (continued)
- 15/172: gnu: go-github-com-aws-aws-sdk-go-v2: Update to 1.30.5., guix-commits, 2024/10/21
- 07/172: gnu: go-github-com-jaytaylor-html2text: Enable tests., guix-commits, 2024/10/21
- 17/172: build-system/go: Allow providing additional test flags., guix-commits, 2024/10/21
- 16/172: import/go: Add comment about monorepo., guix-commits, 2024/10/21
- 22/172: import/go: Add diagnostics., guix-commits, 2024/10/21
- 20/172: build-system/go: Add subdir parameter to go-version->git-ref., guix-commits, 2024/10/21
- 11/172: gnu: go-github-com-deckarep-golang-set: Move to golang-xyz., guix-commits, 2024/10/21
- 26/172: gnu: go-golang-org-x-net: Update to 0.29.0., guix-commits, 2024/10/21
- 44/172: gnu: go-github-com-ipfs-go-ds-badger: Fix build., guix-commits, 2024/10/21
- 64/172: gnu: go-github-com-google-go-querystring: Move to golang-web., guix-commits, 2024/10/21
- 37/172: gnu: go-github-com-golang-groupcache: Fix build.,
guix-commits <=
- 62/172: gnu: go-github-com-google-go-querystring: Update to 1.1.0., guix-commits, 2024/10/21
- 59/172: gnu: Remove go-github-com-jba-printsrc., guix-commits, 2024/10/21
- 57/172: gnu: go-golang-org-x-vuln: Enable tests., guix-commits, 2024/10/21
- 56/172: gnu: go-golang-org-x-vuln: Move to golang-build., guix-commits, 2024/10/21
- 96/172: gnu: Add go-go-opentelemetry-io-otel-sdk., guix-commits, 2024/10/21
- 103/172: gnu: Add go-github-com-openhistogram-circonusllhist., guix-commits, 2024/10/21
- 108/172: gnu: Add go-github-com-hashicorp-go-immutable-radix., guix-commits, 2024/10/21
- 123/172: gnu: nebula: Fix build., guix-commits, 2024/10/21
- 125/172: build/go: Replace symlinks with a copy of the file., guix-commits, 2024/10/21
- 112/172: gnu: Add go-github-com-dgryski-go-ddmin., guix-commits, 2024/10/21