From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#23874: duplicates in manifests are =?UTF-8?Q?=E2=80=9Cinstalled=E2=80=9D?= more than once Date: Thu, 30 Jun 2016 23:14:00 +0200 Message-ID: <87bn2inzvr.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIjIe-0000oA-P8 for bug-guix@gnu.org; Thu, 30 Jun 2016 17:15:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIjIc-0005DF-Oc for bug-guix@gnu.org; Thu, 30 Jun 2016 17:15:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIjIc-0005D9-Kj for bug-guix@gnu.org; Thu, 30 Jun 2016 17:15:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bIjIc-0002EH-Gv for bug-guix@gnu.org; Thu, 30 Jun 2016 17:15:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Ricardo Wurmus's message of "Thu, 30 Jun 2016 15:59:09 +0200") 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: Ricardo Wurmus Cc: 23874@debbugs.gnu.org Hi! Ricardo Wurmus skribis: > No conflicts are reported, so no harm is done, but seemingly having the > very same package more than once in a profile might be confusing. > > Should Guix issue a warning when the same variable is referenced more > than once (I don=E2=80=99t like this because there really is no problem),= or > should Guix delete duplicates from the list before creating a profile > generation? I think it should both delete duplicates, and then error out when two or more packages with the same name remain. Further, this should take into account propagated inputs. I think this is a pretty radical change, though, and I wonder about the amount of breakage it would create. For instance, it means that one could create a profile containing both magit-referring-to-git-2.8 and git-2.9, or emms-referring-to-vorbis-tools-1.0 and vorbis-tools-2.0. Concretely, that means one will no longer be able to upgrade magit without also upgrading git, for instance (assuming they live in the same profile.) WDYT? Thanks, Ludo=E2=80=99.