From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH 0/1] Go importer Date: Thu, 19 Jul 2018 17:38:13 -0400 Message-ID: <20180719213813.GA30418@jasmine.lan> References: <20180426162238.12573-1-pierre-antoine.rouby@inria.fr> <20180502200428.GB5223@jasmine.lan> <1994571664.21912258.1528100333726.JavaMail.zimbra@inria.fr> <20180711190432.GA11727@jasmine.lan> <1601208830.8865092.1531919496235.JavaMail.zimbra@inria.fr> <20180718170732.GA29253@jasmine.lan> <712467967.9013006.1531983363290.JavaMail.zimbra@inria.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgGcv-00034j-9E for guix-devel@gnu.org; Thu, 19 Jul 2018 17:38:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgGcr-0000F1-7B for guix-devel@gnu.org; Thu, 19 Jul 2018 17:38:21 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:53777) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fgGcq-0000Eq-U5 for guix-devel@gnu.org; Thu, 19 Jul 2018 17:38:17 -0400 Content-Disposition: inline In-Reply-To: <712467967.9013006.1531983363290.JavaMail.zimbra@inria.fr> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pierre-Antoine Rouby Cc: guix-devel --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 19, 2018 at 08:56:03AM +0200, Pierre-Antoine Rouby wrote: > I trying to import 'gitlab-runner' (https://gitlab.com/gitlab-org/gitlab-= runner) > with tag 'v10.6.0'. Okay, thanks. I can reproduce the error: ------ $ ./pre-inst-env guix import gopkg https://gitlab.com/gitlab-org/gitlab-run= ner v10.6.0 =20 Initialized empty Git repository in /tmp/guix-directory.silSgB/.git/ = =20 warning: redirecting to https://gitlab.com/gitlab-org/gitlab-runner.git/ remote: Counting objects: 10694, done. remote: Compressing objects: 100% (8261/8261), done. remote: Total 10694 (delta 1974), reused 8461 (delta 1826) Receiving objects: 100% (10694/10694), 29.12 MiB | 2.57 MiB/s, done. Resolving deltas: 100% (1974/1974), done. =46rom https://gitlab.com/gitlab-org/gitlab-runner * tag v10.6.0 -> FETCH_HEAD Note: checking out 'FETCH_HEAD'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b HEAD is now at a3543a2 Update v10.6.0 changelog Backtrace: 14 (apply-smob/1 #) In ice-9/boot-9.scm: 705:2 13 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 12 (_ #(#(#))) In guix/ui.scm: 1579:12 11 (run-guix-command _ . _) In guix/scripts/import.scm: 115:11 10 (guix-import . _) In guix/scripts/import/gopkg.scm: 85:19 9 (guix-import-gopkg . _) In guix/utils.scm: 633:8 8 (call-with-temporary-directory #) In guix/import/gopkg.scm: 343:22 7 (_ "/tmp/guix-directory.silSgB") 322:22 6 (gopkg-dep->packages+dependencies _) 303:22 5 (parse-toml->packages+dependencies _ _ _) 216:16 4 (create-package->packages+dependencies () () "github.c=E2=80= =A6" =E2=80=A6) 47:4 3 (file->hash-base32 #) In guix/serialization.scm: 343:6 2 (dump #) 275:34 1 (_ _) In unknown file: 0 (lstat #) ERROR: In procedure lstat: Wrong type (expecting string): # ------ It does work with some other packages. I guess the difference is whether or not the package has a 'Gopkg.toml' file. For example, this works: ------ $ ./pre-inst-env guix import gopkg https://gopkg.in/redsync.v1 = =20 Initialized empty Git repository in /tmp/guix-directory.6rwYux/.git/ = =20 remote: Counting objects: 13, done. remote: Compressing objects: 100% (12/12), done. remote: Total 13 (delta 0), reused 10 (delta 0), pack-reused 0 Unpacking objects: 100% (13/13), done. =46rom https://gopkg.in/redsync.v1 * branch master -> FETCH_HEAD * [new branch] master -> origin/master Note: checking out 'FETCH_HEAD'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b HEAD is now at 98dabdf Merge pull request #2 from rayzyar/master (define-public go-gopkg-in-redsync-v1 (let ((commit "98dabdf1c8574561bf976911c14ff652c47b1ddf") (revision "0")) (package (name "go-gopkg-in-redsync-v1") (version (git-version "0.0.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://gopkg.in/redsync.v1.git") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "1ir3xj8rz2igw5ciha2nhkvs55w0yf2k1w5xyizy8d0r4xh3x1p5")))) (build-system go-build-system) (arguments '(#:import-path "gopkg.in/redsync.v1")) (native-inputs `()) (home-page "https://gopkg.in/redsync.v1") (synopsis "XXX") (description "XXX") (license #f)))) ------ --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAltRBMIACgkQJkb6MLrK fwg6SQ//c1guks9VR1PVTQUEAkhLY2T2Ug8RMdDQWflQajYZ7Rr/uCkez84mGqv3 0PPo2MC10s14cbhFDCSvi0j8qa8rAnZoHJ0QRR/OIXQGBtawKzyTIAn0DTdlumqQ QbsIDaQINGoNTQDOkSMG5IfZzISR/eQV/0bDFqqSstilFpJPD0LgLjtl/nvN0ej+ fFRM4fcEJs3WhyqWvQEiehQUWninM10M8MnARt8MdIYK5t6/rsxciUPsyuTTbWdy mPESdkDbqEKcDNs561+kjgguEHLi8Iqp2MV5In73S3t6mQHshJvP7Pj9hQvKO/HD +cLolQMMC8sEnU88QCs6mBHLmh18/NJMiPjDOnGZqyZg5zVPKFxe1X6Hkguk0seX RyGquNA7DHh1wEX/QyDMfuD4o0FsCtKHyjPkDCWMT1FUhdDQMgTDJ2kjLF3zMlKx dUY4IMS2upuFuwfkpmOlvuLAoQFQ0nVT9xdgTwyNbgEJBMwV+24PYrUzvD2eRcwZ 8zS1rAIh+hGnpVubXurPUou/MrttgOvwG6X5eOdcXUpL8uOu/gsaRuVJt5Ah2Czb dsDtvVx1e5QpRZm8sRXkLdDMV0K8UPyt3UnwPgrHmWfZVh9e5y0HVeFnSekeftLt g1IjsLCVXZ2OijvZFMTUDSSMMPfghxWZdCmsOHzXkvTbNh5+NKE= =BaAL -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--