[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
38/169: gnu: go-github-com-libp2p-go-msgio: Fix build.
From: |
guix-commits |
Subject: |
38/169: gnu: go-github-com-libp2p-go-msgio: Fix build. |
Date: |
Thu, 26 Sep 2024 06:42:44 -0400 (EDT) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit 5280b962d95935be76b9eca277ee2d0f0da8bd85
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 66814c866b..a3cbd618ea 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -4303,6 +4303,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)
- 31/169: gnu: go-golang-org-x-xerrors: Fix indentation., (continued)
- 31/169: gnu: go-golang-org-x-xerrors: Fix indentation., guix-commits, 2024/09/26
- 39/169: gnu: go-github-com-dgraph-io-badger: Fix build., guix-commits, 2024/09/26
- 48/169: gnu: Add go-golang-org-x-telemetry., guix-commits, 2024/09/26
- 55/169: gnu: go-golang-org-x-vuln: Update to 1.1.3., guix-commits, 2024/09/26
- 06/169: gnu: go-github-com-jaytaylor-html2text: Update to 0.0.0-20230321000545-74c2419ad056., guix-commits, 2024/09/26
- 23/169: gnu: packages/golang-crypto: Apply #:subdir parameter., guix-commits, 2024/09/26
- 30/169: gnu: go-golang-org-x-xerrors: Update to 0.0.0-20200804184101-5ec99f83aff1., guix-commits, 2024/09/26
- 50/169: gnu: go-github-com-google-go-cmdtest: Update to 0.4.0., guix-commits, 2024/09/26
- 27/169: gnu: go-golang-org-x-sys: Update to 0.25.0., guix-commits, 2024/09/26
- 51/169: gnu: go-github-com-google-go-cmdtest: Fix indentation, guix-commits, 2024/09/26
- 38/169: gnu: go-github-com-libp2p-go-msgio: Fix build.,
guix-commits <=
- 47/169: gnu: go-golang-org-x-tools: Update to 0.25.0., guix-commits, 2024/09/26
- 45/169: gnu: go-github-com-libp2p-go-libp2p: Fix build., guix-commits, 2024/09/26
- 59/169: gnu: Remove go-github-com-jba-printsrc., guix-commits, 2024/09/26
- 63/169: gnu: go-github-com-google-go-querystring: Fix indentation., guix-commits, 2024/09/26
- 64/169: gnu: go-github-com-google-go-querystring: Move to golang-web., guix-commits, 2024/09/26
- 81/169: gnu: go-github-com-go-git-go-git-fixtures: Rename variable., guix-commits, 2024/09/26
- 87/169: gnu: go-github-com-go-git-go-billy-v5: Move to golang-xyz., guix-commits, 2024/09/26
- 82/169: gnu: go-github-com-go-git-go-git-fixtures-v4: Keep all phases., guix-commits, 2024/09/26
- 88/169: gnu: go-github-go-git: Rename variable., guix-commits, 2024/09/26
- 90/169: gnu: Add go-github-com-bmatcuk-doublestar-v3., guix-commits, 2024/09/26