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