[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Don't add tags to ELPA packages -- documentation?
From: |
Eric Abrahamsen |
Subject: |
Re: Don't add tags to ELPA packages -- documentation? |
Date: |
Thu, 19 Aug 2021 16:38:18 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Jonas Bernoulli <jonas@bernoul.li> writes:
> Kévin Le Gouguec <kevin.legouguec@gmail.com> 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 <tagname>
and deleted from the upstream repo with:
git push origin :refs/tags/<tagname>
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
- Re: Don't add tags to ELPA packages -- documentation?, (continued)
- Re: Don't add tags to ELPA packages -- documentation?, Yuan Fu, 2021/08/18
- Re: Don't add tags to ELPA packages -- documentation?, Stefan Monnier, 2021/08/18
- Re: Don't add tags to ELPA packages -- documentation?, Stefan Monnier, 2021/08/18
- Re: Don't add tags to ELPA packages -- documentation?, Kévin Le Gouguec, 2021/08/18
- Re: Don't add tags to ELPA packages -- documentation?, Stefan Monnier, 2021/08/18
- Re: Don't add tags to ELPA packages -- documentation?, Eric Abrahamsen, 2021/08/18
- Re: Don't add tags to ELPA packages -- documentation?, Eric Abrahamsen, 2021/08/18
- Re: Don't add tags to ELPA packages -- documentation?, Kévin Le Gouguec, 2021/08/18
- Re: Don't add tags to ELPA packages -- documentation?, Stefan Monnier, 2021/08/18
- Re: Don't add tags to ELPA packages -- documentation?, Jonas Bernoulli, 2021/08/19
- Re: Don't add tags to ELPA packages -- documentation?,
Eric Abrahamsen <=
- Re: Don't add tags to ELPA packages -- documentation?, Andreas Schwab, 2021/08/20
- Re: Don't add tags to ELPA packages -- documentation?, Eric Abrahamsen, 2021/08/20
- Re: Don't add tags to ELPA packages -- documentation?, Eric Abrahamsen, 2021/08/19
- Re: Don't add tags to ELPA packages -- documentation?, Phil Sainty, 2021/08/18
- Re: Don't add tags to ELPA packages -- documentation?, Bozhidar Batsov, 2021/08/18