Recommend updating branches for major versions and not tags in the versioning docs #631
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This should be an obvious change.
git
tags should not be moved, I would hope GitHub knows that, since mostgit
users do.For instance see what the
git tag
man page says about moving a tag: https://git-scm.com/docs/git-tag#_on_re_taggingTo keep it short, the man page calls moving a tag
The insane thing.
. Should be clear it's an anti-pattern.It also explains there are various problems if users already saw the old tag, and it will not be updated for them on
git pull
which might result in confusion (e.g.,git pull; git checkout v1
might checkout an old version of the tag).A branch is what naturally moves in
git
.Are there any advantages to use a moving tag for major versions? I don't see any.
Also this naturally prevents unintentionally going back with a major version:
So, how about recommending best
git
practices in the official versioning documentation of GitHub Actions with this PR?Related: #214 (comment)