diff options
| author | Evgeni Chasnovski <evgeni.chasnovski@gmail.com> | 2026-04-23 18:14:06 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-23 11:14:06 -0400 |
| commit | f8c94bb8cf470ff875ac6dc2e962cfb4b9cef0c2 (patch) | |
| tree | b816436d35af60589b27e69b86b4366c8674ae31 /runtime/lua/vim/lsp/util.lua | |
| parent | 2124ffb27b6adbde23738d0a92fa95d20cdaaf50 (diff) | |
fix(pack): only use tags that strictly comply with semver spec #39342
Problem: Using `version=vim.version.range(...)` in plugin specification
is meant to use semver-like tags. Whether a tag is semver-like was
decided by a plain `vim.version.parse` which is not strict by default.
This allowed treating tags like `nvim-0.6` (which is usually reserved
for the latest revision compatible with Nvim<=0.6 version) like semver
tags and resulted in confusing behavior (preferring `nvim-0.6` tag
over `v0.2.2`, for example).
Solution: Use `vim.version.range(x, { strict = true })` to decide if the
tag name is semver-like or not. This allows tags like both `v1.2.3`
and `1.2.3` while being consistent in what Nvim thinks is a semver
string.
This is technically not a breaking change since it was documented that
only tags like `v<major>.<minor>.<patch>` will be recognized as
semver.
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
0 files changed, 0 insertions, 0 deletions
