[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#49280] References to unversioned source tarballs

From: Philip McGrath
Subject: [bug#49280] References to unversioned source tarballs
Date: Fri, 30 Jul 2021 18:08:33 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 7/30/21 5:31 PM, Ludovic Courtès wrote:
Philip McGrath <> skribis:

+       (uri (string-append %pre-release-installers
+                           "racket-src.tgz"))))))
Do I get it right that *-src.tgz are not versioned?  That they’re
updated in place regularly?
In that case, we cannot refer to them in a package definition since
hash is bound to become stale.
What we could do is refer to, say,
However, I suspect this file would vanish fairly quickly from the web
site, which is not okay either.
I’m not sure what a good solution would be.  WDYT?


For now, I will avoid the problem by just not dealing with "-next" variants.

I just realized that the problem already exists right now, with ‘racket’
and ‘racket-minimal’ referring to ‘racket-src.tgz’.

I think we should fix it after this series, possibly by using
‘git-fetch’ instead.

I think it is actually ok, because the the URIs are formed by:
       (uri (map (lambda (base)
                   (string-append base version "/racket-src.tgz"))
so the version is present as a path element, just not in the file name, e.g. <>. These are definitely stable URLs relied on by a variety of tools, e.g. for CI.

An equivalent tarball is also available at <> (and likewise for the other mirrors), but most tools prefer the "versionless path" URLs so that code manipulating the downloaded artifacts doesn't have to deal with version numbers.

(Download sites like these are created by the "distro-build" Racket package and have a well-known structure, though the documentation is not all in one place. A good place to start would be <>, which is generated from the same Scribble source that generates "" in the main Racket Git repository.)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]