From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IN7iAKoas2L2vAAAbAwnHQ (envelope-from ) for ; Wed, 22 Jun 2022 15:35:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iK/gAKoas2KQvgAA9RJhRA (envelope-from ) for ; Wed, 22 Jun 2022 15:35:38 +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 8CE2433D3A for ; Wed, 22 Jun 2022 15:35:37 +0200 (CEST) Received: from localhost ([::1]:60550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o40W7-0005og-Q4 for larch@yhetil.org; Wed, 22 Jun 2022 09:35:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o40Vj-0005nN-B3 for guix-devel@gnu.org; Wed, 22 Jun 2022 09:35:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o40Vi-000586-HK; Wed, 22 Jun 2022 09:35:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=596i6RIvY/EYyuLFmkHX1j540M8Z/qRc8WgjDHgSjZ0=; b=pc7cjiilJB07vOrIrHGO RxDqA27qLj3fEKNGk701ALmuZZTH6I9OA1BfBgKcUkx9BjHGdXNe21kzQ/TT0XdP+8SH/Zmi/+kZ8 USIczxWkJ9na3VBX3qKoTbHEYmDJlVa36ZyyxSjUeLMw8oquZ0pl9iuFeDxQcBzekLuuE86C2Rg21 JqUkO2YYYuo0i1Lp8OlC6GBOSDM7PeajEQBsSMzW/+RhRBmXtyJtuS0QX4YUe+N9oeI0U95Zn2b94 r/wqQ7wG2dBpC35A3ANtabSfyNjaJjGADEpm7h/GPp6arVtMu6heL9J+s2vqztLaTu2aCOxIkI2SQ BywilXJtWnagQA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:57689 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o40Vi-000343-5O; Wed, 22 Jun 2022 09:35:10 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Hartmut Goebel Cc: guix-devel Subject: Re: guix refresh to a specific version? References: <8783d59a-e60f-6253-80d7-f25cd196e244@crazy-compilers.com> <8735g3fght.fsf@gnu.org> <257ef3b8-cbfb-20d6-2f2a-9ffa472606c2@crazy-compilers.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quartidi 4 Messidor an 230 de la =?utf-8?Q?R=C3=A9vo?= =?utf-8?Q?lution=2C?= jour de la =?utf-8?Q?V=C3=A9ronique?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 22 Jun 2022 15:35:08 +0200 In-Reply-To: <257ef3b8-cbfb-20d6-2f2a-9ffa472606c2@crazy-compilers.com> (Hartmut Goebel's message of "Sun, 19 Jun 2022 11:23:13 +0200") Message-ID: <87pmj03joz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655904937; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=596i6RIvY/EYyuLFmkHX1j540M8Z/qRc8WgjDHgSjZ0=; b=u4LS9bOWQ0UalG9PBL4m4PPsdmKf0qfn4ScsuMf6EYyYtrZBriK6hkE5ADZhlEzQzFn3Wb vCFd2D1tSj4zmo5LKVEBZXqn4Uz54PUmKLRPPM0Ps5834QLZ4tf8pMLUDtTH43ObcaNuKH u06lRJrB6v8XIY8nCFLvOfilPSC50AoKjPWAJsvmn2o7kBk/D9y16Y5TRZgP0X80X+m6BH 6SPSOHUzZPYe/x8vf42ikBd07x3PNfNBig1xTErdlgrc2xkyfHS7j7WWvlh0pHO+6titwq ZKvEydk4Ro+i/r75w2ltwkhYfGvhgVWgpOlur1AMKihREjKRbKI0hS8IkULnvg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655904937; a=rsa-sha256; cv=none; b=E9EZwepKIjH4qvyMopaDOLeqB28gF1dKo/6978HaBZjxKSpNuF6jMljNEA4Ah/+ZIL3bLN qUSK1z/lz47TtrF+sY4c1NifqCbz2uIQIK1ERZBnf/XAiQRwJTsIEoHR0jOTjgjzMgBBm4 17pbYwmFNU0OTnLgblfOeF2+U63Bp60mSATcW6RiPxIy1sJTcWVUUSf3BZs5rqtY3lepMg GDuVE1V4/Ve7k3cCaOFs5ykt0XS1t0MK88UkcQ1J16H2LsSakVQ8624y7Lh9wrJQ6msERz CBa5eXQtXKL3KN2CfxEbcMUvKbM8PPYbOEcBWeU9dnz8GkU8RxekSinu+8P1Aw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=pc7cjiil; dmarc=pass (policy=none) header.from=gnu.org; 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: -4.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=pc7cjiil; dmarc=pass (policy=none) header.from=gnu.org; 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: 8CE2433D3A X-Spam-Score: -4.16 X-Migadu-Scanner: scn1.migadu.com X-TUID: EbevgR6s1H7P Hi, Hartmut Goebel skribis: > One can already specify a version, which defines the package to be > updated. The respective place the code has the comment > > Take either the specified version or the latest one. > > and this was added by you (Ludo) in > 4b9b3cbbc45afa3e374889847d4ab8673b8b2db2 (April 2015): > > refresh: Allow users to refer to specific package versions. > > * guix/scripts/refresh.scm (guix-refresh): Use 'specification->package' > =C2=A0 instead of 'find-packages-by-name'.=C2=A0 This allows users to spe= cify > =C2=A0 things like "qt-4.8.6". Like you write, this commit is the =E2=80=9Cwrong end=E2=80=9D: it=E2=80=99= s about selecting the package you=E2=80=99re willing to update. Most entry points in (guix import =E2=80=A6) already take a #:version param= eter, which allows you to ask for a specific version when running =E2=80=98guix import=E2=80=99, as in: guix import pypi itsdangerous@1.1.0 The goal here is to expose that in the API and to use it in =E2=80=98guix refresh=E2=80=99. Ludo=E2=80=99.