From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uNwtCwZyUmMOGwAAbAwnHQ (envelope-from ) for ; Fri, 21 Oct 2022 12:18:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sIlICgZyUmOpfQEAG6o9tA (envelope-from ) for ; Fri, 21 Oct 2022 12:18:46 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CB9B7C32E for ; Fri, 21 Oct 2022 12:18:45 +0200 (CEST) Received: from localhost ([::1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olp6X-0008UM-KI for larch@yhetil.org; Fri, 21 Oct 2022 06:18:28 -0400 Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oloWh-0000vJ-UE for larch@yhetil.org; Fri, 21 Oct 2022 05:41:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oloWH-0000ae-Sg for guix-devel@gnu.org; Fri, 21 Oct 2022 05:40:56 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oloWF-0007zo-MF for guix-devel@gnu.org; Fri, 21 Oct 2022 05:40:49 -0400 Received: by mail-wr1-x42b.google.com with SMTP id b4so4012264wrs.1 for ; Fri, 21 Oct 2022 02:40:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=MgYx6HV7SceF+ZvyMB9Zp1Oct5tslWsG0l3XxcxqZQY=; b=eZFECOPKtWOA9WuZ2hxW8yuStYwPkD6Kfb1Pw7OIAzs10RbzfZs+CeLS33UA0pIR+y hKhx779qCAK/vKHHxPst6dXphwQHI/fVpKGDQ8sl3aupYxihAqfrJHPhngpYqx7YJ9we Uk+DnvcikN+7iL3d0Dfxp01qqkdVhc4XljwUpJFKtisflKeS8bBuX0n2tKOnEyfzau4S gZ5agzadmFjuuDDxPf6Fy9bZ5dENPMdiUsjpn39iUOattW8YZqBFw1DGC5WeDruX9OmJ zZzCxsE6fI762LLbkEyDXpxfx2xSab8CzHVmeX85lKDbmYZHIjYMFoYJL2sOAayGrFxH TlTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=MgYx6HV7SceF+ZvyMB9Zp1Oct5tslWsG0l3XxcxqZQY=; b=30Gbliu8sP8yuYMDWpqAPQ//sbVPp/kO55GUp+NNRcjk15d4gU8xxmfAd3v0bdseQF WdFXaYk0eEieffv4ajaUB8DhBecdyrycdgmmAFAQ6CBiHjY5MicDtRoYPSiXMfwjsEJt J4vRd74Q7pkhcZ3ushwj5gpI+7KwP5UKWRMeOW7XZzUvSU7N+NG3orcnDzhu44m/DFV5 7UPMI35OSAPZF7pscYt+2dtaPYgWO0gifVQiOD80eSufdVOhrL530WMVQY2dm72kDDgW iHfB25msDHUOFz7a9run6dAijp/DXIjGf4MMaaCxa1QCIa4d2EkHJmF3CNhFrRRWiSd3 j2ww== X-Gm-Message-State: ACrzQf2RYXOOhx1lVPDUDpBZUKrZ4h1xhohMI940NVE5Tc+4WTTIcc5p oa4q/0Y6Khw66Uwc+piKH0euqbiPxkg= X-Google-Smtp-Source: AMsMyM7/2rAXN0rQ3DqtY/n5btwBj252F9GyvcvBgrFvKf8HleybqfUzuPPgUy/PTKseOgTMpODhBQ== X-Received: by 2002:a5d:4692:0:b0:235:b188:3ec with SMTP id u18-20020a5d4692000000b00235b18803ecmr5365542wrq.210.1666345245798; Fri, 21 Oct 2022 02:40:45 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id j18-20020a5d4492000000b0022f864164edsm18846182wrq.6.2022.10.21.02.40.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Oct 2022 02:40:45 -0700 (PDT) From: zimoun To: Phil , guix-devel@gnu.org Subject: Re: Pinning package inputs using inferiors? In-Reply-To: <87czam9nxq.fsf@beadling.co.uk> References: <87czam9nxq.fsf@beadling.co.uk> Date: Fri, 21 Oct 2022 11:36:53 +0200 Message-ID: <86r0z11psa.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666347525; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=MgYx6HV7SceF+ZvyMB9Zp1Oct5tslWsG0l3XxcxqZQY=; b=fOWevmuFmkeXOT99RqoSuZyVl4YJH2wT469Q6vr2V5nXXm/G1bbZp2Vk2ZjWYBs39GSqUq rzxBlxqWFm7CpStSzTeqmrIMpvYlgZEkHoZFn0HkWlDMvuQ9/z6OikgEznvG78jhMr70EJ ujv0/S9xfi8gMCBdJhOBxuMWLsODwGAfBOdlFswQEYHYhkvKiqp/NIkTRXBTs4vmg4V8CZ /r9KTj9BsBjrWhCDydDZgt/hNLJB5n+VzDhM0x9orH2u7rDOvlKth4fvtJegcHAjf91y7H P+7fmO6ltkW59FgmnGYCzpFICV7tjt5Sp+opxe2uKBb+jUwham7vtNrcWqAGqA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666347525; a=rsa-sha256; cv=none; b=UMX1sYkHmkgeyYWTuLf0FbF2PQPLJvr0Nj+1HrCPY1+9H+c+vP5nCZpY5r4lAnovtnP20q pDOpo4x1RN38MXsTCumrFVQ1l0FAZp8+tKXEtjkTI/SxntBsk11XFEMoOu8mXbsH8RHpeb QV6bSHuXBw6j1AQVTsgRi5CwW7XgSL4cGrFsyRyXJSuc+AESCvyeNharxpez/f9VVKDEZR ilkWwYLyQZoUKQI7hFNVZmxgIyDnD2nclTOCK9VFa1EMfuXmDQMcoiMmaQSQ3u0bSjy2e5 3Vml8Do6fVNLtkrkT6xUOzQTCPD2xfGFTbmZcEP1rvsUeigTwvYMdRJCbvRBMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eZFECOPK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.24 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eZFECOPK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CB9B7C32E X-Spam-Score: -7.24 X-Migadu-Scanner: scn0.migadu.com X-TUID: RCpAGgj1a4Rb Hi Phil, On Thu, 20 Oct 2022 at 22:37, Phil wrote: > A change in a package ("dependency" in the below example) in a channel I > own has caused a conflict in another package in the same channel that dep= ends > on it ("test-package" in the below). Whilst fixing the "test-package" > package is the right solution, this is too complicated in do in the > short-term. I need to pin "dependency" to v1.0 in test-pacakge's > propagated-inputs. Simultaneously, other packages need the new update to > the "dependency" package to use this functionality to deliver new > functionality that can't wait. > > This isn't a one-off situation; this happens frequently and I'm > interested in how other Guixers resolve this with as little friction to > users as possible? Well, I answer to this question and I do not answer to your question about inferior=E2=80=A6 > One brainwave I had was to use inferiors - but this doesn't seem to > work. Continuing from the above example we could define access to a > historical v1.0 of the dependency package for the test-package like so: > > (define dependency-inferior > ;; An inferior containing dependency v1.0. > (inferior-for-channels dependency-channels)) =E2=80=A6instead of defining a complete inferior, why not just define 2 packages. Something as, (define-public foo (package (name "foo") (version "2.0") [...] (define-public foo-1.6 (package (inherit foo) (name "foo") (version "1.6") [...] For an example, see python-numpy and python-numpy-next in (gnu packages python-xyz). Note that most CLI as =E2=80=9Cguix install foo=E2=80=9D will install the l= ast version. Hence the =E2=80=99-next=E2=80=99 trick in the package name. :-) Depending= what you would like to be the =E2=80=9Cdefault=E2=80=9C. Cheers, simon