Re: git-fetch without a hash

2023-02-06 Thread Simon Tournier
Hi, On dim., 05 févr. 2023 at 18:44, b...@bokr.com wrote: >> From my understanding, we could have something like, >> >> (sha256 (no-hash)) >> >> where ’no-hash’ would return a string, say >> "" or whatever else >> that would satisfy

Re: git-fetch without a hash

2023-02-05 Thread bokr
Hi, On +2023-01-11 16:34:41 +0100, Simon Tournier wrote: > Hi, > > On Mon, 09 Jan 2023 at 12:16, Ludovic Courtès wrote: > > Simon Tournier skribis: > > > >> Maybe my question is naive but what is the use case for this (sha256 #f) > >> in the first place? Because maybe it could just error

Re: git-fetch without a hash

2023-01-17 Thread Ludovic Courtès
Hi, Stephen Paul Weber skribis: >>Once we update the ‘guix’ package, the daemon will no longer accept >>‘url-fetch’ downloads with hash = #f. > > Ok. Is there something like (git-checkout) we can use that will work > instead of an (origin) here for url downloads? There’s in (guix

Re: git-fetch without a hash

2023-01-11 Thread Simon Tournier
Hi, On Mon, 09 Jan 2023 at 12:16, Ludovic Courtès wrote: > Simon Tournier skribis: > >> Maybe my question is naive but what is the use case for this (sha256 #f) >> in the first place? Because maybe it could just error using some >> ’sanitize’ for the hash record field. > > There’s a couple of

Re: git-fetch without a hash

2023-01-09 Thread Stephen Paul Weber
Once we update the ‘guix’ package, the daemon will no longer accept ‘url-fetch’ downloads with hash = #f. Ok. Is there something like (git-checkout) we can use that will work instead of an (origin) here for url downloads?

Re: git-fetch without a hash

2023-01-09 Thread Ludovic Courtès
Hi, Ludovic Courtès skribis: > scheme@(guile-user)> ,lower (origin > (method url-fetch) > (uri "mirror://gnu/hello/hello-2.12.1.tar.gz") > (sha256 #f)) > $6 = #

Re: git-fetch without a hash

2023-01-09 Thread Ludovic Courtès
Simon Tournier skribis: > Maybe my question is naive but what is the use case for this (sha256 #f) > in the first place? Because maybe it could just error using some > ’sanitize’ for the hash record field. There’s a couple of uses: Chromium, IceCat, and Linux-libre (IIRC). I don’t like that,

Re: git-fetch without a hash

2023-01-05 Thread Simon Tournier
Hi, On Tue, 03 Jan 2023 at 22:34, Ludovic Courtès wrote: >> Yes. When using (sha256 #f) url-fetch still has network access and >> works to download things, which is inconsistent vs other fetchers. > > Hmm indeed: On Wed, 21 Dec 2022 at 23:49, Ludovic Courtès wrote: > (sha256 #f) is not a

Re: git-fetch without a hash

2023-01-03 Thread Ludovic Courtès
Hi! Stephen Paul Weber skribis: >>> However, there's no real reason that git-fetch *needs* to be >>> fixed-output in terms of having a hash pre-defined, at least for local >>> development and other purposes. So is there a way around this? >> >> • write (package (source (git-checkout …)) …) >

Re: git-fetch without a hash

2023-01-03 Thread Stephen Paul Weber
However, there's no real reason that git-fetch *needs* to be fixed-output in terms of having a hash pre-defined, at least for local development and other purposes. So is there a way around this? • write (package (source (git-checkout …)) …) This works well. Now I'm curious how to know what

Re: git-fetch without a hash

2022-12-21 Thread Ludovic Courtès
Hi, Stephen Paul Weber skribis: > It seem that url-fetch will work without a hash (that is, with (sha256 > #f)) but git-fetch will not. (sha256 #f) is not a documented use case. :-) > As near as I can tell this is because git-fetch uses a fixed > derivation build going via nix/build.cc stuff

git-fetch without a hash

2022-12-20 Thread Stephen Paul Weber
Hello Guix! It seem that url-fetch will work without a hash (that is, with (sha256 #f)) but git-fetch will not. As near as I can tell this is because git-fetch uses a fixed derivation build going via nix/build.cc stuff which contains this line: if (i.second.hash == "") fixedOutput