all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: guix-devel@gnu.org
Subject: Packaging go-github-com-hashicorp-vault-sdk -- ‘no Go files found’
Date: Sun, 20 Mar 2022 11:06:23 +0100	[thread overview]
Message-ID: <8a816b0f386700e53bdd2856995acfb93ca75f58.camel@telenet.be> (raw)


[-- 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 --]

                 reply	other threads:[~2022-03-20 10:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8a816b0f386700e53bdd2856995acfb93ca75f58.camel@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.