* Packaging go-github-com-hashicorp-vault-sdk -- ‘no Go files found’
@ 2022-03-20 10:06 Maxime Devos
0 siblings, 0 replies; only message in thread
From: Maxime Devos @ 2022-03-20 10:06 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1.1: Type: text/plain, Size: 1226 bytes --]
(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.
[-- Attachment #1.2: foo.scm --]
[-- Type: text/x-scheme, Size: 1458 bytes --]
(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
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-20 10:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-20 10:06 Packaging go-github-com-hashicorp-vault-sdk -- ‘no Go files found’ Maxime Devos
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).