From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brice Waegeneire Subject: bug#40377: guix build --with-commit is broken Date: Wed, 01 Apr 2020 17:41:20 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:46294) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJhNL-0004j7-JM for bug-guix@gnu.org; Wed, 01 Apr 2020 13:42:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJhNK-00070h-Cp for bug-guix@gnu.org; Wed, 01 Apr 2020 13:42:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55311) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJhNK-00070a-9M for bug-guix@gnu.org; Wed, 01 Apr 2020 13:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jJhNK-0000Im-62 for bug-guix@gnu.org; Wed, 01 Apr 2020 13:42:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:46163) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJhMk-0004gr-Cr for bug-guix@gnu.org; Wed, 01 Apr 2020 13:41:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJhMi-0006Rs-Rj for bug-guix@gnu.org; Wed, 01 Apr 2020 13:41:25 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:48907) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jJhMi-0006Ql-L4 for bug-guix@gnu.org; Wed, 01 Apr 2020 13:41:24 -0400 Received: from webmail.gandi.net (webmail18.sd4.0x35.net [10.200.201.18]) (Authenticated sender: brice@waegenei.re) by relay4-d.mail.gandi.net (Postfix) with ESMTPA id 2712DE0007 for ; Wed, 1 Apr 2020 17:41:20 +0000 (UTC) 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-mx.org@gnu.org Sender: "bug-Guix" To: 40377@debbugs.gnu.org Hello, `--with-commit' from `guix build' doesn't always work. It seems to not really update the checkout contrary to what is reported since changing the `git-url`, by adding a slash for example, put it back on track. It makes it useless when trying out to build a newly released version. Following are some examples: $ guix build mlt /gnu/store/m6y21nnyg6p0kcxbfj7k1dnbwbsbj006-mlt-6.18.0 $ guix build mlt --with-commit=mlt=v6.18.0 updating checkout of 'https://github.com/mltframework/mlt.git'... guix build: error: Git failure while fetching https://github.com/mltframework/mlt.git: the requested type does not match the type in the ODB $ guix build mlt --with-commit=mlt=v6.18.0 --with-git-url=mlt=https://github.com/mltframework/mlt.git/ updating checkout of 'https://github.com/mltframework/mlt.git/'... retrieved commit 46a226217d8ec5bbf66a4fa3da138fd6924dd13b The following derivations will be built: /gnu/store/ljlj1dwkdfb7sziy02hi5scskdjmxv02-mlt-6.18.0.drv /gnu/store/02q25aq6mi8287hbakc9v7z0jmq9f6cz-sdl-1.2.15.drv /gnu/store/5z3v3w5aslbcsq0ia429n0pkshv6f14x-frei0r-plugins-1.7. [...] $ guix build picom --with-commit=picom=v7.5 updating checkout of 'https://github.com/yshui/picom.git'... retrieved commit 3838f053afb1aa05ba1ab489f2dfaa44c00c9ef0 /gnu/store/q1bl4q1x4wmyps5ibljvj4x3y2nl24la-picom-7.5 $ guix build picom --with-commit=picom=vNext updating checkout of 'https://github.com/yshui/picom.git'... guix build: error: Git failure while fetching https://github.com/yshui/picom.git: the requested type does not match the type in the ODB I've found out about this issue by reading pelzflorian's suggestion about adding a `--with-version' in [0] and [1], he wrote that a year ago, before support for tags was added to `--with-commit'. [0]: https://issues.guix.info/issue/35744 [1]: https://lists.gnu.org/archive/html/help-guix/2019-05/msg00093.html - Brice