[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
124/172: gnu: go-github-com-matttproud-golang-protobuf-extensions-v2: Fi
From: |
guix-commits |
Subject: |
124/172: gnu: go-github-com-matttproud-golang-protobuf-extensions-v2: Fix build. |
Date: |
Tue, 5 Nov 2024 16:05:06 -0500 (EST) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit 16bee3a460e3945e5242b494286e3abfed091cc2
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Mon Sep 16 12:04:25 2024 +0100
gnu: go-github-com-matttproud-golang-protobuf-extensions-v2: Fix build.
* gnu/packages/golang-xyz.scm
(go-github-com-matttproud-golang-protobuf-extensions-v2):
Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files.
Change-Id: Id19ae90a13788a454ac11089dabf71ce399b20db
---
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 2d6b882d36..d15ff6b054 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -5163,6 +5163,24 @@ other directories. It is optimized for filewalking.")
#:import-path "github.com/matttproud/golang_protobuf_extensions/v2"
#: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: Activate when go-build-system supports submodules.
(delete 'build)
;; XXX: Replace when go-build-system supports nested path.
- 54/172: gnu: go-github-com-google-go-cmdtest: Move to golang-build., (continued)
- 54/172: gnu: go-github-com-google-go-cmdtest: Move to golang-build., guix-commits, 2024/11/05
- 83/172: gnu: go-github-com-go-git-go-git-fixtures-v4: Move to golang-xyz., guix-commits, 2024/11/05
- 87/172: gnu: go-github-com-go-git-go-billy-v5: Move to golang-xyz., guix-commits, 2024/11/05
- 88/172: gnu: go-github-go-git: Rename variable., guix-commits, 2024/11/05
- 89/172: gnu: go-github-com-go-git-go-git-v5: Update style., guix-commits, 2024/11/05
- 108/172: gnu: Add go-github-com-hashicorp-go-immutable-radix., guix-commits, 2024/11/05
- 111/172: gnu: Add go-github-com-ryanuber-columnize., guix-commits, 2024/11/05
- 115/172: gnu: Add go-github-com-tinylib-msgp., guix-commits, 2024/11/05
- 121/172: gnu: restic-rest-server: Fix build., guix-commits, 2024/11/05
- 120/172: gnu: miniflux: Fix build., guix-commits, 2024/11/05
- 124/172: gnu: go-github-com-matttproud-golang-protobuf-extensions-v2: Fix build.,
guix-commits <=
- 123/172: gnu: nebula: Fix build., guix-commits, 2024/11/05
- 132/172: gnu: go-github-com-aead-chacha20: Fix indentation., guix-commits, 2024/11/05
- 135/172: gnu: Add go-github-com-xtaci-smux., guix-commits, 2024/11/05
- 134/172: gnu: go-github-com-shadowsocks-go-shadowsocks2: Enable all tests., guix-commits, 2024/11/05
- 136/172: gnu: Add go-github-com-xtaci-lossyconn., guix-commits, 2024/11/05
- 137/172: gnu: go-github.com-smartystreets-assertions: Rename variable., guix-commits, 2024/11/05
- 143/172: gnu: Remove go-github.com-smartystreets-gunit., guix-commits, 2024/11/05
- 144/172: gnu: go-github-com-sevlyar-go-daemon: Update to 0.1.6., guix-commits, 2024/11/05
- 150/172: gnu: go-github-com-emersion-go-autostart: Update to 0.0.0-20210130080809-00ed301c8e9a., guix-commits, 2024/11/05
- 153/172: gnu: go-github-com-operatorfoundation-shapeshifter-transports: Fix build., guix-commits, 2024/11/05