harry/move go binary and deps #520
Open
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.
Updates Go to 1.25.1 and updates Go packages to new Gitlab location.
This will be a Major version bump, since it requires users to update their Go versions.
Upgrade Steps
The plugin now includes a
/versionendpoint which returns the version of the Go binary. The binary's version is baked in when it's built as the lastgit tagwhich is what we use for releases. When a user upgrades their plugin, the next time the server starts:luacode will call this version endpoint.The next time the user starts the server, the
/versionendpoint will return the tag version that matches Lua, and no rebuild and restart will occur. This should ensure that all users have the latest version of the binary on their machine that's linked to the Lua code. Whenever they upgrade the plugin,gitlab.nvimwill rebuild the Go binary whenever the server notices a mismatch.