unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* error: "cannot download for method git-fetch"
@ 2021-02-21 12:27 Hartmut Goebel
  2021-02-21 14:10 ` Joshua Branson
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Hartmut Goebel @ 2021-02-21 12:27 UTC (permalink / raw)
  To: help-guix

Hi,

once again, my pre-inst-env seems to be incomplete, When running

$ ./pre-inst-env guix refresh -u vis
gnu/packages/text-editors.scm:81:2: error: cannot download for this 
method: #<procedure git-fetch (ref hash-algo hash #:optional name #:key 
system guile git)>

Updating some other package, which is using http-fetch, works. So this 
seams to be related to git.

Looks like something missing. Any hints?

The manifest for the profile I'm using for development is:

(specifications->manifest
  '("recutils" "nss-certs" "openssl"
    "bzip2" "gzip" "zlib" "lzlib" "sqlite" "libgcrypt" "pkg-config" "guile"
    "util-linux" "glibc-utf8-locales"
    ;; propagated-inputs
    "gnutls" "guile-gcrypt" "guile-git" "guile-json" "guile-lzlib"
    "guile-semver" "guile-sqlite3" "guile-ssh" "guile-zlib" ))

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: error: "cannot download for method git-fetch"
  2021-02-21 12:27 error: "cannot download for method git-fetch" Hartmut Goebel
@ 2021-02-21 14:10 ` Joshua Branson
  2021-02-21 16:54 ` Wiktor Żelazny
  2021-02-24 13:15 ` zimoun
  2 siblings, 0 replies; 7+ messages in thread
From: Joshua Branson @ 2021-02-21 14:10 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: help-guix

Hartmut Goebel <h.goebel@crazy-compilers.com> writes:

> Hi,
>
>
> The manifest for the profile I'm using for development is:
>
> (specifications->manifest
>  '("recutils" "nss-certs" "openssl"
>    "bzip2" "gzip" "zlib" "lzlib" "sqlite" "libgcrypt" "pkg-config" "guile"
>    "util-linux" "glibc-utf8-locales"
>    ;; propagated-inputs
>    "gnutls" "guile-gcrypt" "guile-git" "guile-json" "guile-lzlib"
>    "guile-semver" "guile-sqlite3" "guile-ssh" "guile-zlib" ))

I use guix environment guix --pure.  That's what the manual "building"
from git reccommends.  :)

--
Joshua Branson (joshuaBPMan in #guix)
Sent from Emacs and Gnus
  https://gnucode.me
  https://video.hardlimit.com/accounts/joshua_branson/video-channels
  https://propernaming.org
  "You can have whatever you want, as long as you help
enough other people get what they want." - Zig Ziglar


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: error: "cannot download for method git-fetch"
  2021-02-21 12:27 error: "cannot download for method git-fetch" Hartmut Goebel
  2021-02-21 14:10 ` Joshua Branson
@ 2021-02-21 16:54 ` Wiktor Żelazny
  2021-02-21 19:06   ` Leo Famulari
  2021-02-24 13:15 ` zimoun
  2 siblings, 1 reply; 7+ messages in thread
From: Wiktor Żelazny @ 2021-02-21 16:54 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 276 bytes --]

On Sun, Feb 21, 2021 at 01:27:58PM +0100, Hartmut Goebel wrote:

> Updating some other package, which is using http-fetch, works. So this
> seams to be related to git.

Hi,

Perhaps you’re behind a firewall that blocks connections that use the
git protocol?

WŻ

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: error: "cannot download for method git-fetch"
  2021-02-21 16:54 ` Wiktor Żelazny
@ 2021-02-21 19:06   ` Leo Famulari
  2021-02-22 19:44     ` raingloom
  0 siblings, 1 reply; 7+ messages in thread
From: Leo Famulari @ 2021-02-21 19:06 UTC (permalink / raw)
  To: Hartmut Goebel, help-guix

On Sun, Feb 21, 2021 at 05:54:34PM +0100, Wiktor Żelazny wrote:
> On Sun, Feb 21, 2021 at 01:27:58PM +0100, Hartmut Goebel wrote:
> 
> > Updating some other package, which is using http-fetch, works. So this
> > seams to be related to git.
> 
> Hi,
> 
> Perhaps you’re behind a firewall that blocks connections that use the
> git protocol?

Perhaps, but most uses of Git sources in our packages fetch over HTTP or
HTTPS, so ports 80 and 443. It's unusual for these to be blocked. The
actual git:// protocol, which is rarely used, uses port 9418.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: error: "cannot download for method git-fetch"
  2021-02-21 19:06   ` Leo Famulari
@ 2021-02-22 19:44     ` raingloom
  0 siblings, 0 replies; 7+ messages in thread
From: raingloom @ 2021-02-22 19:44 UTC (permalink / raw)
  To: help-guix

On Sun, 21 Feb 2021 14:06:20 -0500
Leo Famulari <leo@famulari.name> wrote:

> On Sun, Feb 21, 2021 at 05:54:34PM +0100, Wiktor Żelazny wrote:
> > On Sun, Feb 21, 2021 at 01:27:58PM +0100, Hartmut Goebel wrote:
> >   
> > > Updating some other package, which is using http-fetch, works. So
> > > this seams to be related to git.  
> > 
> > Hi,
> > 
> > Perhaps you’re behind a firewall that blocks connections that use
> > the git protocol?  
> 
> Perhaps, but most uses of Git sources in our packages fetch over HTTP
> or HTTPS, so ports 80 and 443. It's unusual for these to be blocked.
> The actual git:// protocol, which is rarely used, uses port 9418.
> 

I'm not behind a firewall and have been getting the same (or at least
similar?) error. (So far I haven't saved any logs from it.)
Just a guess, but maybe it's caused by some packages using
string-append "v" and the updated can't figure out how to reverse
that???
Purely just guessing here.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: error: "cannot download for method git-fetch"
  2021-02-21 12:27 error: "cannot download for method git-fetch" Hartmut Goebel
  2021-02-21 14:10 ` Joshua Branson
  2021-02-21 16:54 ` Wiktor Żelazny
@ 2021-02-24 13:15 ` zimoun
  2021-03-01 14:16   ` Hartmut Goebel
  2 siblings, 1 reply; 7+ messages in thread
From: zimoun @ 2021-02-24 13:15 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: help-guix

Hi Hartmut,

On Sun, 21 Feb 2021 at 13:34, Hartmut Goebel
<h.goebel@crazy-compilers.com> wrote:

> $ ./pre-inst-env guix refresh -u vis> gnu/packages/text-editors.scm:81:2: error: cannot download for this
> method: #<procedure git-fetch (ref hash-algo hash #:optional name #:key
> system guile git)>
>
> Updating some other package, which is using http-fetch, works. So this
> seams to be related to git.
>
> Looks like something missing. Any hints?

Maybe I misread, but it is not possible to refresh packages with
’git-fetch’ as source because of:

--8<---------------cut here---------------start------------->8---
(define %method-updates
  ;; Mapping of origin methods to source update procedures.
  `((,url-fetch . ,package-update/url-fetch)))
--8<---------------cut here---------------end--------------->8---

and

--8<---------------cut here---------------start------------->8---
       (match (assq method %method-updates)
         (#f
          (raise (make-compound-condition
                  (formatted-message (G_ "cannot download for \
this method: ~s")
                                     method)
--8<---------------cut here---------------end--------------->8---

in ’package-update’ from (guix upstream).


Well, it should be possible and as you said: «looks like something is
missing.»  :-)

Hope that helps,
simon


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: error: "cannot download for method git-fetch"
  2021-02-24 13:15 ` zimoun
@ 2021-03-01 14:16   ` Hartmut Goebel
  0 siblings, 0 replies; 7+ messages in thread
From: Hartmut Goebel @ 2021-03-01 14:16 UTC (permalink / raw)
  To: zimoun; +Cc: help-guix

Am 24.02.21 um 14:15 schrieb zimoun:
> Maybe I misread, but it is not possible to refresh packages with
> ’git-fetch’ as source because of:

IC. Thanks.

(Maybe there should be a better error message for this case. But ATM I 
don't feel the power for even creating an bug report.)

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-03-01 14:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-21 12:27 error: "cannot download for method git-fetch" Hartmut Goebel
2021-02-21 14:10 ` Joshua Branson
2021-02-21 16:54 ` Wiktor Żelazny
2021-02-21 19:06   ` Leo Famulari
2021-02-22 19:44     ` raingloom
2021-02-24 13:15 ` zimoun
2021-03-01 14:16   ` Hartmut Goebel

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).