(I sent this one previously to help-guix two days ago, and again one day ago, but it seems that it did not end up in <https://lists.gnu.org/archive/html/help-guix/2022-03/threads.html> so I'm resending to guix-devel this time)
Hi, I'm trying to package go-github-com-hashicorp-vault-sdk. I ran "guix import go github.com/hashicorp/vault/sdk", corrected the commit and (for now) remove the inputs (many aren't packaged yet). When I now try to build it, I end up with the following error message (from "guix build"): phase `patch-source-shebangs' succeeded after 0.6 seconds starting phase `build' package github.com/hashicorp/vault/sdk: no Go files in /tmp/guix-build-go-github-com-hashicorp-vault-sdk-0.4.1.drv-0/src/github.com/hashicorp/vault/sdk Building 'github.com/hashicorp/vault/sdk' failed. However, there is go stuff there! $ ls /tmp/guix-build-go-github-com-hashicorp-vault-sdk-0.4.1.drv-4/src/github.com/hashicorp/vault/sdk > database framework go.mod go.sum helper logical physical plugin queue > README.md version There's a go.mod, go.sum and the subdirectories have .go files! Does anyone know how to resolve this kind of problem? Greetings, Maxime.
(use-modules (guix packages) (guix build-system go) (guix git-download) ((guix licenses) #:prefix license:)) (package (name "go-github-com-hashicorp-vault-sdk") (version "0.4.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/hashicorp/vault") (commit (string-append "sdk/v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0vndpb0f490clvm18m1vx12cl3zqrn12q3zz0bd5i55czfdinsl5")))) (build-system go-build-system) (arguments '(#:import-path "github.com/hashicorp/vault/sdk" #;"TODO no go files found" #:unpack-path "github.com/hashicorp/vault")) ;; TODO: add inputs (home-page "https://github.com/hashicorp/vault") (synopsis "Vault SDK libs") (description "This package provides the @code{sdk} package which contains code useful for developing Vault plugins.") (license license:mpl2.0)) ;; phase `patch-source-shebangs' succeeded after 0.6 seconds ;; starting phase `build' ;; package github.com/hashicorp/vault/sdk: no Go files in /tmp/guix-build-go-github-com-hashicorp-vault-sdk-0.4.1.drv-0/src/github.com/hashicorp/vault/sdk ;; Building 'github.com/hashicorp/vault/sdk' failed. ;; However, there is go stuff there ;; ls /tmp/guix-build-go-github-com-hashicorp-vault-sdk-0.4.1.drv-4/src/github.com/hashicorp/vault/sdk ;; database framework go.mod go.sum helper logical physical plugin queue README.md version
signature.asc
Description: This is a digitally signed message part