Skip to content

Allow specifying wildcard tag without getting a pre-release version #1323

Description

@biinari

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions