GNU bug report logs - #44187
Channel clones lack SWH fallback

Previous Next

Package: guix;

Reported by: zimoun <zimon.toutoune <at> gmail.com>

Date: Fri, 23 Oct 2020 22:18:01 UTC

Severity: important

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 44187 <at> debbugs.gnu.org
Subject: bug#44187: Channel clones lack SWH fallback
Date: Sat, 18 Sep 2021 12:27:13 +0200
Hi,

On Sat, 18 Sept 2021 at 12:05, Ludovic Courtès <ludo <at> gnu.org> wrote:
> zimoun <zimon.toutoune <at> gmail.com> skribis:

> > Does it make sense to pass this ’swhid’ equal to ’swh:1:rev’ with the
> > ’flat’ archive-type?  Another instance is,

[...]

> > and from my understanding, again ’swhid’ depends on ’archive-type’.
> > Therefore, it prone error.
>
> ‘git-bare’ only makes sense for a revision, not a directory, but I

So it does not seem possible to form a 'swhid' as "swh:1:dir" and pass
'archive-type' as 'git-bare'.  And conversely with 'swh:1:rev' and
'flat'.  Right?
I have not tried though. :-)
If yes, it means the both arguments 'swhid' and 'archive-type' are
linked so the function should accept only one unifyied argument and
not 2 independent ones.  IMHO.

> wonder if ‘flat’ can be used for a revision (in which case it’d be
> equivalent to getting the corresponding directory)?
>
> I agree there’s some redundancy between directory/revision and
> flat/git-bare, but it’s the SWH API that looks like this, so I’d be
> tempted to just keep it as is.  Maybe we could ask for guidance on
> #swh-devel.

Well, let postpone the refactoring. :-)  However, if it works as I
understand, then the refactoring seems the correct way so I would not
accept a backward compatibility argument. ;-)

Have a nice week-end,
simon




This bug report was last modified 3 years and 302 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.