[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
38/172: gnu: go-github-com-libp2p-go-msgio: Fix build.
From: |
guix-commits |
Subject: |
38/172: gnu: go-github-com-libp2p-go-msgio: Fix build. |
Date: |
Mon, 21 Oct 2024 17:30:27 -0400 (EDT) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit d8db16dfe08765ae14d7417e2356b698c13cb23f
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Sep 13 14:30:44 2024 +0100
gnu: go-github-com-libp2p-go-msgio: Fix build.
* gnu/packages/golang-xyz.scm (go-github-com-libp2p-go-msgio): Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files.
Change-Id: I39c59d5483d5af7968cde30a883fbcdaf08bebb1
---
gnu/packages/golang-xyz.scm | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 21256219a7..f6b7493464 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -4355,6 +4355,24 @@ allocator. This is primarily useful for long lived
buffers that usually sit emp
#:import-path "github.com/libp2p/go-msgio"
#: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)$"))))
;; XXX: Replace when go-build-system supports nested path.
(replace 'check
(lambda* (#:key import-path tests? #:allow-other-keys)
- 39/172: gnu: go-github-com-dgraph-io-badger: Fix build., (continued)
- 39/172: gnu: go-github-com-dgraph-io-badger: Fix build., guix-commits, 2024/10/21
- 31/172: gnu: go-golang-org-x-xerrors: Fix indentation., guix-commits, 2024/10/21
- 60/172: gnu: go-github-com-sergi-go-diff: Update to 1.3.1., guix-commits, 2024/10/21
- 30/172: gnu: go-golang-org-x-xerrors: Update to 0.0.0-20200804184101-5ec99f83aff1., guix-commits, 2024/10/21
- 70/172: gnu: go-github-com-jonboulle-clockwork: Fix indentation., guix-commits, 2024/10/21
- 75/172: gnu: go-github-com-google-gopacket: Move to golang-web., guix-commits, 2024/10/21
- 89/172: gnu: go-github-com-go-git-go-git-v5: Update style., guix-commits, 2024/10/21
- 13/172: gnu: Remove go-github-com-kyoh86-xdg., guix-commits, 2024/10/21
- 24/172: gnu: go-golang-org-x-image: Update to 0.20.0., guix-commits, 2024/10/21
- 27/172: gnu: go-golang-org-x-sys: Update to 0.25.0., guix-commits, 2024/10/21
- 38/172: gnu: go-github-com-libp2p-go-msgio: Fix build.,
guix-commits <=
- 29/172: gnu: go-golang-org-x-text: Update to 0.18.0., guix-commits, 2024/10/21
- 67/172: gnu: go-github-com-google-goterm: Move to golang-xyz., guix-commits, 2024/10/21
- 81/172: gnu: go-github-com-go-git-go-git-fixtures: Rename variable., guix-commits, 2024/10/21
- 46/172: gnu: kubo: Fix build., guix-commits, 2024/10/21
- 90/172: gnu: Add go-github-com-bmatcuk-doublestar-v3., guix-commits, 2024/10/21
- 162/172: gnu: Add go-github-com-matryer-is., guix-commits, 2024/10/21
- 168/172: gnu: go-github-com-subosito-gotenv: Move to golang-xyz., guix-commits, 2024/10/21
- 66/172: gnu: go-github-com-google-goterm: Fix indentation., guix-commits, 2024/10/21
- 71/172: gnu: go-github-com-jonboulle-clockwork: Move to golang-xyz., guix-commits, 2024/10/21
- 73/172: gnu: go-github-com-google-btree: Update to 1.1.3., guix-commits, 2024/10/21