Re: Adding content-addressed URLs to https://guix.gnu.org/sources.json

2023-05-07 Thread Maxim Cournoyer
Hi, Ludovic Courtès writes: > Hi, > > Ludovic Courtès skribis: > >> How about the attached patch? >> >> $ ./pre-inst-env guix lint -c archival ruby-sorbet-runtime racket >> gnu/packages/ruby.scm:14081:12: >> ruby-sorbet-runtime@0.5.10610.20230106174520-1fa668010: source is >> not an origin, it

Re: Adding content-addressed URLs to https://guix.gnu.org/sources.json

2023-05-07 Thread Ludovic Courtès
Hi, Ludovic Courtès skribis: > How about the attached patch? > > $ ./pre-inst-env guix lint -c archival ruby-sorbet-runtime racket > gnu/packages/ruby.scm:14081:12: > ruby-sorbet-runtime@0.5.10610.20230106174520-1fa668010: source is not an > origin, it cannot be archived > > (The version

Re: Adding content-addressed URLs to https://guix.gnu.org/sources.json

2023-05-04 Thread Ludovic Courtès
Hello! Maxim Cournoyer skribis: > Ludovic Courtès writes: [...] >> So I guess as a matter of policy, we should try and find other ways to >> express this so we don’t lose track of origins. > > Thanks for explaining, it makes sense. One way to tip package writers > in the right direction

Re: Adding content-addressed URLs to https://guix.gnu.org/sources.json

2023-05-02 Thread Simon Tournier
Hi, On Tue, 02 May 2023 at 08:52, Maxim Cournoyer wrote: > Thanks for explaining, it makes sense. One way to tip package writers > in the right direction would be to add a warning when such a situation > occurs upon running 'guix lint'. Somehow improve “guix lint -c archival”. ;-) > Simon's

Re: Adding content-addressed URLs to https://guix.gnu.org/sources.json

2023-05-02 Thread Maxim Cournoyer
Hi Ludo, Ludovic Courtès writes: > Hello, > > Maxim Cournoyer skribis: > >> Simon Tournier writes: > > [...] > >>> I agree that any file-like object is nice. Somehow, the issue is to >>> “unpack“ the information of this object. For instance, >>> >>> scheme@(guix-user)> (define

Re: Adding content-addressed URLs to https://guix.gnu.org/sources.json

2023-05-02 Thread Ludovic Courtès
Hello, Maxim Cournoyer skribis: > Simon Tournier writes: [...] >> I agree that any file-like object is nice. Somehow, the issue is to >> “unpack“ the information of this object. For instance, >> >> scheme@(guix-user)> (define ruby-sorbet-runtime (@@ (gnu packages ruby) >>

Re: Adding content-addressed URLs to https://guix.gnu.org/sources.json

2023-04-30 Thread Maxim Cournoyer
Hi Simon, Simon Tournier writes: > Hi Ludo, Maxim, all, > > On mar., 25 avril 2023 at 14:40, Ludovic Courtès > wrote: > >>> Somehow, it reveals 3 currently uncovered cases: computed-file appearing >>> as, >>> >>> 1. ’origin’ in source field (ruby-sorbet-runtime) >>> 2. ’inputs’

Re: Adding content-addressed URLs to https://guix.gnu.org/sources.json

2023-04-28 Thread Simon Tournier
Hi Ludo, Maxim, all, On mar., 25 avril 2023 at 14:40, Ludovic Courtès wrote: >> Somehow, it reveals 3 currently uncovered cases: computed-file appearing >> as, >> >> 1. ’origin’ in source field (ruby-sorbet-runtime) >> 2. ’inputs’ (racket-minimal) >> 3. ’snippet’ in origin in source field

Re: Adding content-addressed URLs to https://guix.gnu.org/sources.json

2023-04-25 Thread Maxim Cournoyer
Hi Simon, Simon Tournier writes: [...] > $ guix repl -- build-package-metadata.scm /tmp/ > guix repl: package metadata will be written to '/tmp/' > Backtrace: > > [...] > > In procedure %origin-patches-real: Wrong type argument: #< > name:

Re: Adding content-addressed URLs to https://guix.gnu.org/sources.json

2023-04-25 Thread Ludovic Courtès
Hello, (+Cc: guix-sysadmin) Simon Tournier skribis: > On Mon, 24 Apr 2023 at 18:41, Ludovic Courtès > wrote: > >> How does that sound? > > The patch LGTM. Applied in maintenance.git commit b7af47ceb629b2267ea8c28dbe5750a456be0b8f. I’ll reconfigure berlin soonish to it runs this updated

Re: Adding content-addressed URLs to https://guix.gnu.org/sources.json

2023-04-25 Thread Ludovic Courtès
Hi! Simon Tournier skribis: > PS: On a side note, building sources.json fails since ~1 month. > > $ guix repl -- build-package-metadata.scm /tmp/ > guix repl: package metadata will be written to '/tmp/' > Backtrace: > > [...] > > In procedure %origin-patches-real: Wrong type argument: #< >

Re: Adding content-addressed URLs to https://guix.gnu.org/sources.json

2023-04-25 Thread Simon Tournier
Hi, On Mon, 24 Apr 2023 at 18:41, Ludovic Courtès wrote: > How does that sound? The patch LGTM. Cheers, simon PS: On a side note, building sources.json fails since ~1 month. --8<---cut here---start->8--- $ guix repl -- build-package-metadata.scm /tmp/

Adding content-addressed URLs to https://guix.gnu.org/sources.json

2023-04-24 Thread Ludovic Courtès
Hi, Simon Tournier skribis: > On Thu, 16 Mar 2023 at 12:48, Ludovic Courtès > wrote: > >> 1. Reproducibility of past revisions. If we lose copies of the >> auto-generated tarballs, then OpenJDK in past revisions of Guix is >> irreparably lost. We should check whether/how to get