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:38:18 -0700 Message-ID: <878s0xknth.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="19060"; 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:39:57 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 1mGrdd-0004i4-Hl for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Aug 2021 01:39:57 +0200 Original-Received: from localhost ([::1]:59332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGrdc-0000hP-5j for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Aug 2021 19:39:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGrcE-0008Pp-C5 for emacs-devel@gnu.org; Thu, 19 Aug 2021 19:38:30 -0400 Original-Received: from mail.ericabrahamsen.net ([52.70.2.18]:46726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGrcC-0006FU-J3 for emacs-devel@gnu.org; Thu, 19 Aug 2021 19:38:30 -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 56640FA07F; Thu, 19 Aug 2021 23:38:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1629416300; bh=QYisrHzwWypMdaRTLYDPIpjS49RjkLuoPd2/Au7iwws=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=bBUNPvR9SUKWyx81NZcKNGV/5fRSgin5iSTz/e16KCbbz6ViUYUN+dKNfviYtIrrP 4t2RMOB5B+PywdurzA5MR4cQOj0zVNQ3W9SB9PcaAekpl4Z2pj3hJO3quLEjol6Pn7 LF4TK2kecD0i+znXT9pjf/cSYvYdhuuV/XZGIils= 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:272691 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. I sent an in a README patch a couple of messages up-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. This looks fairly simple. Tags can be deleted locally with: git tag --delete and deleted from the upstream repo with: git push origin :refs/tags/ Apparently pushing an empty :tagname does the trick; thank you git for more unintuitive syntax. The "refs/tags" is safer since tags and branches have separate namespaces and we might hit a branch by accident. > 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. > > Jonas