From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#35621: Simplify comparing guix challenge results Date: Wed, 08 May 2019 22:28:46 +0200 Message-ID: <87zhnwd729.fsf@elephly.net> References: <87sgtqxhwi.fsf@yucca> <87o94dw10g.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:49436) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOTCY-000080-El for bug-guix@gnu.org; Wed, 08 May 2019 16:30:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOTCX-0007MN-HC for bug-guix@gnu.org; Wed, 08 May 2019 16:30:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48829) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOTCX-0007ME-EN for bug-guix@gnu.org; Wed, 08 May 2019 16:30:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hOTCU-0005ac-QX for bug-guix@gnu.org; Wed, 08 May 2019 16:30:05 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87o94dw10g.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 35621@debbugs.gnu.org, Vagrant Cascadian Ludovic Court=C3=A8s writes: > Hi! > > Vagrant Cascadian skribis: > >> What about an argument to "guix challenge" that handles the downloading >> and unpacking to a temporary directory, and possibly another that also >> runs a comparison tool against the results. Maybe something like: >> >> $ guix challenge --download-differences >> /tmp/git-XXXXX/SUBSTITTE-X/...-git-2.5.0 >> /tmp/git-XXXXX/SUBSTITUTE-Y/...-git-2.5.0 >> /gnu/store/...-git-2.5.0 >> >> Downloads and unpacks the substitutes, and outputs the resulting >> directories. >> >> >> $ guix challenge --download-differences --compare-with=3D"diffoscope .= .." >> >> This would do the above, plus run diffoscope on the directories >> ... though I think diffoscope can only compare between two things at a >> time... so that might get difficult if many substitutes return results. > > Sounds like a good idea. Perhaps =E2=80=98--compare-with=E2=80=99 is act= ually enough > (it would also download things), dunno. I think it=E2=80=99s fine to have just =E2=80=9C--compare-with=E2=80=9D, wh= ich would print the location of the downloaded things, so you could compare with =E2=80=9Cecho= =E2=80=9D if all you wanted is to get the differences. -- Ricardo