From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Suhail Singh Newsgroups: gmane.emacs.devel Subject: Re: Reconsider defaults for use-package-vc-prefer-newest Date: Thu, 26 Sep 2024 20:33:06 -0400 Message-ID: <87setmey0t.fsf@gmail.com> References: <87wmj7dftf.fsf@posteo.net> <87setvxyt6.fsf@gmail.com> <87jzf7o13b.fsf@posteo.net> <87msk3jr0u.fsf@gmail.com> <87setum5do.fsf@posteo.net> <87msk1520e.fsf@gmail.com> <87settknf1.fsf@posteo.net> <87tte8akwa.fsf@gmail.com> <878qvjaep6.fsf@posteo.net> <87cykvwixn.fsf@gmail.com> <3BC7EB33-504C-4532-A2DF-83712B64878E@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20077"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Suhail Singh , emacs-devel , Philip Kaludercic , Martin =?utf-8?Q?Edstr=C3=B6m?= , Tony Zorman To: Charles Choi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 27 07:38:49 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 1su3gm-00058z-7a for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Sep 2024 07:38:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1su3g5-00005C-QQ; Fri, 27 Sep 2024 01:38:05 -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 1styvB-0000uZ-ML for emacs-devel@gnu.org; Thu, 26 Sep 2024 20:33:21 -0400 Original-Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1styvA-0005Et-4h for emacs-devel@gnu.org; Thu, 26 Sep 2024 20:33:21 -0400 Original-Received: by mail-qt1-x843.google.com with SMTP id d75a77b69052e-4581d15c3e3so10749341cf.0 for ; Thu, 26 Sep 2024 17:33:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727397198; x=1728001998; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=8vWdJz4ALhbPoR7v9Ufr3JiuQYYyfVXL981bhRem1Tw=; b=S8L6nc95BY+1KNv0DnlcDpn1keGOl+DFRtOPic2Tq0uiG3lIvLS6gnAw1dE6pb5O1r 2zleDYc853PY2eiUHzeTl8rZtnJ5OsxQjGVfAVP7hmzJA2u9EJQXC02e83qEYFMEHxBa y9WdfaNBTljpsxFLZAn1maQYmZAUbHsYtG7RJc8Ku/qhT1YI71UjsdoROFw6c8g17U2r ohdj9Cc5JQL0/0bV+UUeZBtVjRDIpVqTD2SSrsG8pjXUkbxOiB20X2cwnT/JzPx5pYF7 pdtKhVma/F8xGO0rUEsw1SUOa529PrkoXhKA8HnTfaDdrMD8MXHM+RBKk+5TuyfB+5ZP 3Ejw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727397198; x=1728001998; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8vWdJz4ALhbPoR7v9Ufr3JiuQYYyfVXL981bhRem1Tw=; b=WymJGjFcEWYZ2AFwcVaKkZmh7BaYsAzpSGjFXIz7EOEpU4SorJWj9VXbaTxx/jFGc5 RpiDO3UCUDftvvLrP88jeAT9NELDct5HLDOKb81ScC6row0mRTvMCzvIrJB9ZrZev0ly Gx36rKUrb+FEouYGcT65KL0IzY+WvlVdJcEv4efqgsvSI/jjswY2pv4MqRzJX4zRVk/p K/qrkfbppKWCe171gHsnw0WO4sFAjNHVfVS8r9lYtZBGCX7HoFZJtl7xF69d6XrzwKHz R2bHFr6fj0wXp5HdTs3COupttrXzlDc7TE/KtQtHrs3HZtMfgW2aBIgaPLWtHo0JD2IB TarQ== X-Forwarded-Encrypted: i=1; AJvYcCX2Ifhk2ogM5AShGSMRg4kPY6GU7Tki8q+TukOVyD0+fAjBG6cJxxD9b3i74w2Ip1vmlFRgacmRHfm9CA==@gnu.org X-Gm-Message-State: AOJu0YwIRLU3HlWDQYupZzK613dnAIQMknuUkX2evzy61EChHubqgAuv cHZC3Kn1iFN7sVlSmXbAyHZJoCRLGQwLXvh0DcgIeualPXH5TbZAM8ygTDYi X-Google-Smtp-Source: AGHT+IF50QesGCal+USTZpxDTrffTBlD/smApOApgTa6y72CD82b3FXvGxPbdZdxUMmHIB1FAkX5VQ== X-Received: by 2002:ac8:7d0a:0:b0:458:546a:360e with SMTP id d75a77b69052e-45c9f23180amr21496031cf.33.1727397198581; Thu, 26 Sep 2024 17:33:18 -0700 (PDT) Original-Received: from gnus ([65.94.70.53]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-45c9f2bce82sm3425361cf.32.2024.09.26.17.33.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2024 17:33:17 -0700 (PDT) In-Reply-To: <3BC7EB33-504C-4532-A2DF-83712B64878E@gmail.com> (Charles Choi's message of "Thu, 26 Sep 2024 16:23:22 -0700") Received-SPF: pass client-ip=2607:f8b0:4864:20::843; envelope-from=suhailsingh247@gmail.com; helo=mail-qt1-x843.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 27 Sep 2024 01:38:04 -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:324125 Archived-At: Charles Choi writes: > ... I'd like to understand better what the recommended practice for > package versioning is. I am not an authority on the matter, so please take my comments below with a grain of salt and for information purposes only (i.e., they are not a recommendation). > - Create a feature branch from the `main` branch and bump the `Version:` header. > - Make commits to the feature branch. > - Merge the feature branch back to `main`. Without going into what could be possible or should be possible, when merging the feature branch back to `main' if you perform a fast-forward merge all will be well. > - Tag `main` with the `Version:` header value. Doing a fast-forward merge will ensure that when you tag `main' the commit that gets tagged is the one that bumped the `Version:' (or `Package-Version:') value. > ... a package can have many files. In that case, the desirable thing is to update the version headers in all files in a single commit. If a package release is made for version "a.b.c", it is worthwhile to also make the following commit update the package headers to something like "a.b.c.50-git". Doing so ensures that version strings are monotonically non-decreasing and ensures that anyone cloning the repository where HEAD is not-yet released gets a version number that is consistent and distinct from the latest release. If you're using the `sisyphus' package, the below configuration may be of interest: #+begin_src emacs-lisp (use-package sisyphus :ensure t :pin melpa :unless noninteractive :after magit :demand t :config (setq sisyphus-non-release-bump-header t sisyphus-non-release-suffix ".50-git")) #+end_src With the above, I can use `M-x sisyphus-create-release` and `M-x sisyphus-bump-post-release` as conveniences. On a related note, if you do decide to use `sisyphus`, you may need to rename `Version:` in the package header to `Package-Version:` instead. -- Suhail