From: Maxime Devos <maximedevos@telenet.be>
To: Xinglu Chen <public@yoctocell.xyz>,
Sarah Morgensen <iskarian@mgsn.dev>,
guix-devel@gnu.org
Subject: Re: Can we find a better idiom for unversioned packages?
Date: Wed, 01 Sep 2021 18:29:18 +0200 [thread overview]
Message-ID: <7f6e3fe3714fc47a8e7196ed1ff397df202ff3d7.camel@telenet.be> (raw)
In-Reply-To: <8735qolckw.fsf@yoctocell.xyz>
[-- Attachment #1: Type: text/plain, Size: 1314 bytes --]
> > (define-public sbcl-feeder
> > (name "sbcl-feeder")
> > (version (extended-version
> > (base "1.0.0")
> > (revision 1)
> > (commit "b05f517d7729564575cc809e086c262646a94d34")))
> > (source
> > (origin
> > (method git-fetch)
> > (uri (git-reference ...)
> > (url ...)
> > ;; git-reference needs to be extended to retrieve the commit from the version
> > (version version)))
> > (file-name (git-file-name "feeder" version))
> > (sha256 ...)))
> > [...])
>
> How will this work for SVN and CVS? I am not familiar with either, but
> I know that SVN has its own ‘revision’ thing.
Maybe:
(extended-version
(base-version "14.12.0")
(revision 123) ; what guix considers a revision
(commit 38938)) ; what svn considers a revision (TODO figure out non-confusing terminology)
(define (version->string v)
(cond ((string? v) v)
;; for SVN
(REVISION is set but COMMIT isn't
(string-append base-version "-" (number->string revision)))
;; for git and mercurial
(both REVISION and COMMIT are set
the code from git-version)))
Or have separate types <git-version>, <mercurial-version>, <svn-version> ...
Greetings,
Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
next prev parent reply other threads:[~2021-09-01 16:45 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-31 19:57 Can we find a better idiom for unversioned packages? Sarah Morgensen
2021-08-31 21:20 ` Maxime Devos
2021-09-01 12:11 ` Xinglu Chen
2021-09-01 16:29 ` Maxime Devos [this message]
2021-09-01 13:33 ` Liliana Marie Prikler
2021-09-01 16:39 ` Maxime Devos
2021-09-01 18:34 ` Liliana Marie Prikler
2021-09-02 14:09 ` Maxime Devos
2021-09-02 14:20 ` Liliana Marie Prikler
2021-09-02 14:34 ` Maxime Devos
2021-09-01 19:48 ` Jonathan McHugh
2021-09-01 21:47 ` Liliana Marie Prikler
2021-09-02 13:32 ` Maxime Devos
2021-09-02 7:53 ` Jonathan McHugh
2021-09-02 9:25 ` Liliana Marie Prikler
2021-09-01 10:55 ` Xinglu Chen
2021-09-01 15:37 ` Leo Famulari
2021-09-01 16:50 ` Xinglu Chen
2021-09-02 16:51 ` Leo Famulari
2021-09-02 17:29 ` Leo Famulari
2021-09-03 16:11 ` Xinglu Chen
2021-09-03 16:35 ` Leo Famulari
2021-09-03 16:57 ` Leo Famulari
2021-09-03 20:03 ` Xinglu Chen
2021-09-04 21:00 ` Leo Famulari
2021-09-08 21:15 ` Ludovic Courtès
2021-09-02 17:08 ` Leo Famulari
2021-09-08 21:28 ` Ludovic Courtès
2021-09-08 22:21 ` Jonathan McHugh
2021-09-08 22:38 ` Leo Famulari
-- strict thread matches above, loose matches on Subject: below --
2021-09-03 5:51 Sarah Morgensen
2021-09-03 21:14 Sarah Morgensen
2021-09-03 22:11 ` Liliana Marie Prikler
2021-09-04 12:32 ` Taylan Kammer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7f6e3fe3714fc47a8e7196ed1ff397df202ff3d7.camel@telenet.be \
--to=maximedevos@telenet.be \
--cc=guix-devel@gnu.org \
--cc=iskarian@mgsn.dev \
--cc=public@yoctocell.xyz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.