From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tony Zorman Newsgroups: gmane.emacs.devel Subject: Re: Reconsider defaults for use-package-vc-prefer-newest Date: Sat, 21 Sep 2024 16:58:13 +0200 Message-ID: <87bk0hhx4q.fsf@hyperspace> References: <87wmj7dftf.fsf@posteo.net> <875xqqly63.fsf@hyperspace> <87r09dhxs1.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27593"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Martin =?utf-8?Q?Edstr=C3=B6m?= , emacs-devel To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 21 17:10:09 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ss1kO-00070z-7A for ged-emacs-devel@m.gmane-mx.org; Sat, 21 Sep 2024 17:10:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ss1jf-0003IT-SB; Sat, 21 Sep 2024 11:09:23 -0400 Original-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 1ss1Z5-0002CF-Gc for emacs-devel@gnu.org; Sat, 21 Sep 2024 10:58:27 -0400 Original-Received: from mout-p-102.mailbox.org ([2001:67c:2050:0:465::102]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1ss1Z3-0007U2-6l for emacs-devel@gnu.org; Sat, 21 Sep 2024 10:58:27 -0400 Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4X9sng3BzNz9smr; Sat, 21 Sep 2024 16:58:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1726930695; h=from:from: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; bh=1qs5xHWWr7q5ybcr3QeSgu00z/6eBH3csBf8VueCpPk=; b=HWjckJJFk6itZnnV7HnjAHnESOD0qy0kXI1C4xr+YHTAqHHJuCm+IwZ/t4uniMwEeicd9w uPrs3o175D7H+uT2GEwQMD2i+9dbNFMv2dGL2nhKWX5yT3JN3GZG2hHd7j/jZHQN0dr/uE DTL0t9Dyuvn4gsVet9+2toB1GEQoqasCvTu1zLUpMH4U7CQMyjf1pH35kVXn8A8nNp9cE+ VWgJDZWKhVNJHsNcNW62S8AVZJ+NGsVXSjCtgY9e+coQ/ISdhZ+MF3Tuuh3X1bXeOaJzgj on18xvJQ69cmudjN2L4cmFUIf4mPs7eRd9vuh+RTSiO9DzqI/WBLIEkwcDCCDw== In-Reply-To: <87r09dhxs1.fsf@posteo.net> X-MBO-RS-ID: 4028b726390ef9dbfbd X-MBO-RS-META: 18t84t3tgqn464869xg5fi7nguqdsjsi Received-SPF: pass client-ip=2001:67c:2050:0:465::102; envelope-from=tonyzorman@mailbox.org; helo=mout-p-102.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 21 Sep 2024 11:09:21 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323894 Archived-At: On Sat, Sep 21 2024 14:44, Philip Kaludercic wrote: > Tony Zorman writes: > >>>> PROBLEM 1. MISMATCH WITH PACKAGE-VC >>>> >>>> Now use-package :vc is not in line with the behavior of the >>>> package-vc-install command, which fetches the newest commit. >>>> >>>> All other package managers I know of also fetch the newest commit. >>> >>> The main reference is package.el, which by default uses GNU ELPA and >>> NonGNU ELPA. Both distribute explicitly released packages, as indicated >>> by the version header. To me this has a much greater weight than what >>> third-party package managers and archives decide to do. >> >> I will say that I also find it surprising behaviour that, by default, >> >> (package-vc-install "=C2=ABURL=C2=BB") >> >> and >> >> (use-package blah >> :vc (:url "=C2=ABURL=C2=BB")) >> >> have different semantics. > > One idea I had we that we could require :vc to take a :rev argument. > But if it really is the case that we haven't found the right solution, > perhaps we should remove the keyword from the next release, or at least > mark it as some kind of an experimental feature? That seems a bit too extreme to me, and I think the feature is much too useful for that. Defaulting to *something* when not being given an explicit revision also seems sensible, seeing how use-package generally tries to do "the right thing". Plus, just setting use-package-vc-prefer-newest to t resolves this "tension" in a satisfactory manner=E2=80=94at least to me. --=20 Tony Zorman | https://tony-zorman.com