From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Reconsider defaults for use-package-vc-prefer-newest Date: Tue, 17 Sep 2024 14:44:50 +0300 Message-ID: <86tteebj2l.fsf@gnu.org> References: <86r09jddgk.fsf@gnu.org> <87msk7nym4.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3972"; mail-complaints-to="usenet@ciao.gmane.io" Cc: meedstrom@runbox.eu, yandros@gmail.com, emacs-devel@gnu.org To: Suhail Singh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 17 13:45:50 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 1sqWeS-0000na-F2 for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Sep 2024 13:45:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqWdb-0004Km-Ke; Tue, 17 Sep 2024 07:44:55 -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 1sqWda-0004G1-FN for emacs-devel@gnu.org; Tue, 17 Sep 2024 07:44:54 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqWdZ-0001i6-7a; Tue, 17 Sep 2024 07:44:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=RmOCIOSZ10lUI0UU7KSsXdMMKpetaeAH3x0o7saHDY8=; b=OaRhkBmBwhjl O+KFdPEOqrtNMw7eBAY0fG5m0XizwQcLAYMqi4ZevUsZGUJWblxYSt6FxXsDfUpgkroe85StGg4nG U3vdTWhG1irAuwlfqdiSnMF5MX0tIha3bWhSSs0s26cmgBP2QaZETPpCJL204EDjieeceMulhoBYa OJ+cZH0xDUZOUed58nxcq9KH2+auWwTxn8TFoJQsdn4EyjHpsAZFZTAGkfLEi5QN14IblfDvqToMs D+RZ6znO2XFJxw9qT2AIXTlwZTKX0AraaMk01uJs++9D2b/EM9Gl8sI9QbCnCB2+eNBVMgtDaXVQk UdFGpeqD/qaiR1YgBT9j0A==; In-Reply-To: <87msk7nym4.fsf@gmail.com> (message from Suhail Singh on Mon, 16 Sep 2024 16:16:03 -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:323690 Archived-At: > From: Suhail Singh > Cc: "Martin Edstrom" , yandros@gmail.com, > emacs-devel@gnu.org > Date: Mon, 16 Sep 2024 16:16:03 -0400 > > Eli Zaretskii writes: > > > If the problem is that there's a tag with the correct version, but the > > Package-Version heading was not updated, we could perhaps have > > use-package :vc detect that and either display a warning or even > > automatically use the commit with the tag. > > FWIW, a situation I have encountered is when the commit corresponding to > a release tag is not the same commit that introduced the version in the > package header. This can come up, for instance, when a package is > available both in melpa-stable and nongnu. The former uses git tags for > versions whereas the latter uses the package header. However, while the > version of the packages may nominally be the same, they may correspond > to different commits. I.e., having two different sources of version > information can result in ambiguity. > > When the two notions of version don't correspond to the same commit, it > would be helpful if the user could be notified in some way. Yes, that'd be another reason to alert the user. Patches to that effect are welcome.