From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: Don't add tags to ELPA packages -- documentation? Date: Thu, 19 Aug 2021 16:44:12 -0700 Message-ID: <874kblknjn.fsf@ericabrahamsen.net> References: <87fsv7bww1.fsf@ericabrahamsen.net> <87k0kjoi3j.fsf@ericabrahamsen.net> <7dc63c685f15a500c7b37a153c28f6b3@webmail.orcon.net.nz> <87bl5vod7t.fsf@ericabrahamsen.net> <9f29e7dafac0498cffad17b4db809445@webmail.orcon.net.nz> <83e594e7-e7b1-455d-807c-2b3020abdf4a@www.fastmail.com> <109BADAD-23FE-407A-A990-8D2A5A17B7CB@gmail.com> <87wnoin812.fsf@gmail.com> <874kbmn41j.fsf@ericabrahamsen.net> <871r6q1qu3.fsf@gmail.com> <87o89ti2a7.fsf@bernoul.li> 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="997"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Yuan Fu , Emacs Devel , Bozhidar Batsov , Stefan Monnier , =?utf-8?Q?K=C3=A9vin?= Le Gouguec To: Jonas Bernoulli Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 20 01:45:03 2021 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 1mGriY-000AZP-Ug for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Aug 2021 01:45:03 +0200 Original-Received: from localhost ([::1]:33816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGriX-0002i3-FK for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Aug 2021 19:45:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGrhp-00022C-GZ for emacs-devel@gnu.org; Thu, 19 Aug 2021 19:44:17 -0400 Original-Received: from mail.ericabrahamsen.net ([52.70.2.18]:46850) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGrho-0001sM-2z for emacs-devel@gnu.org; Thu, 19 Aug 2021 19:44:17 -0400 Original-Received: from localhost (c-73-109-4-106.hsd1.wa.comcast.net [73.109.4.106]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 3E461FA07F; Thu, 19 Aug 2021 23:44:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1629416654; bh=2hqzuiGC8CBF0hCEVtYT3qCzEzgT6S+tv9dZntC8joI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=usj7jhswpoikEPCWkqlm1Ji7ysHd4TOmAgWhEN/wLPKGfAVKMiYz0GHBUfI71LWSI 2lmnCFbQLXkA62X3AtlsnXyg0wMCqZAjGdfbHclPtt34JqkOz5WjqXGU8uynO2dT5/ O9CZ4a2khx6CgoHSeaMl97EYRtPDdBEJTRzScfyo= In-Reply-To: <87o89ti2a7.fsf@bernoul.li> (Jonas Bernoulli's message of "Thu, 19 Aug 2021 22:54:08 +0200") Received-SPF: pass client-ip=52.70.2.18; envelope-from=eric@ericabrahamsen.net; helo=mail.ericabrahamsen.net X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:272692 Archived-At: Jonas Bernoulli writes: > K=C3=A9vin Le Gouguec writes: > > Let's document that tags should not be pushed; both why and how, > as described elsewhere in this thread. > > But I expect that tags will still occasionally be pushed anyway. > When that happens we should figure out what upstream repository > they came from, educate the respective maintainer about how to > avoid pushing them again, and then delete them. > > But [because it is going to keep happening] this is more important: > >> Mmm, IIUC any of "git clone", "git fetch" and "git pull" can fetch tags >> if not used with "--no-tags". A quick look at elpa-admin.el shows some >> occurrences of "pull" without "--no-tags", but I haven't looked hard >> enough at the GNU ELPA machinery to figure if those could have fetched >> the tags we observe. > > Every occurrence of "git clone ..." and "git remote add ..." in the > documentation should be updated to mention that "--no-tags" has to be > used to prevent tags from being pulled. We should also document how to > recover if the tags have already been pulled. And finally we should add > an annotated tag named something like "use--no-tags" and use its > annotation to repeat the documentation about adding "--no-tags" and how > to clean up. I'll bet we can write a hook to reject tags. The "update.sample" hook example in .git/hooks looks like it has most of what we'd need.