Using a wildcard for the latest tag can install a pre-release tag instead of the stable tag.
For example, the following installs v1.29-rc.1 instead of the later stable tag v1.29.
Plug 'fatih/vim-go', { 'tag': '*' }
Desired solution
An option to exclude pre-release tags would be great. Perhaps as a regex like:
Plug 'fatih/vim-go', { 'tag': '*', 'tag-exclude': '-(alpha|beta|rc)' }
Partial Workaround
It is possible to configure git to sort the stable tag after pre-release tags of the same version by setting git versionsort.suffix, like:
git config --global versionsort.suffix '-alpha'
git config --global --add versionsort.suffix '-beta'
git config --global --add versionsort.suffix '-rc'
or equivalently in ~/.gitconfig with:
[versionsort]
suffix = -alpha
suffix = -beta
suffix = -rc
This does not prevent a pre-release tag from being installed, but at least it resolves to the stable tag for a version once it is released.
Or, you can specify the latest tag and remember to change it when running :PluginUpdate.
Using a wildcard for the latest tag can install a pre-release tag instead of the stable tag.
For example, the following installs
v1.29-rc.1instead of the later stable tagv1.29.Desired solution
An option to exclude pre-release tags would be great. Perhaps as a regex like:
Partial Workaround
It is possible to configure git to sort the stable tag after pre-release tags of the same version by setting git
versionsort.suffix, like:or equivalently in
~/.gitconfigwith:This does not prevent a pre-release tag from being installed, but at least it resolves to the stable tag for a version once it is released.
Or, you can specify the latest tag and remember to change it when running
:PluginUpdate.