gitlab.nvim icon indicating copy to clipboard operation
gitlab.nvim copied to clipboard

Draft: Fix: Go Gitlab Project Has Moved

Open harrisoncramer opened this issue 1 year ago • 5 comments

This required changing Go to 1.23, unless I'm mistaken, which will make this an unfortunate breaking change for downstream users. To fix, users will have to update their local Go versions to 1.23.4, as the plugin requires this local version of Go in order to compile.

It's worth looking at shipping precompiled versions of the plugins moving forward to avoid this for end-users in the future.

Fixes #447.

Note: This is a #MAJOR breaking change, that will require users to update their versions of Go locally to latest (1.23.4)

harrisoncramer avatar Dec 26 '24 18:12 harrisoncramer

I was receiving 500 errors when trying to add comments to an MR, and changing to this branch fixed it.

camfowler avatar Mar 05 '25 20:03 camfowler

I've been testing client-go because of other features and it turns out, that there will be some more work to be done when switching from xanzy/go-gitlab, e.g., the ListProjectMergeRequests now returns BasicMergeRequests, rather than MergeRequests.

jakubbortlik avatar Apr 11 '25 23:04 jakubbortlik

Hi @harrisoncramer. I'd like to ask about your plans with this MR and with the plugin in general. I would appreciate if the xanzy/go-gitlab library could finally be replaced as it would unblock some issues (e.g., #478, #182, and possibly #386). Also, I'd like to add some other functionality and I'm not sure if I should open PRs here or just work on my fork.

jakubbortlik avatar Sep 18 '25 10:09 jakubbortlik

@jakubbortlik The problem with updating to the latest Go version is that clients of the plugin would have to install later versions of Go, because that's used to compile the application locally. I'd rather not ship such a breaking change, or at least if we do, then make sure we do it carefully.

Honestly, I'm rarely using Gitlab these days as my new employer doesn't use it, so if you're interested in taking on a PR that updates the Go version in a graceful way then go for it, but I'll probably only minimally contribute from here forward.

harrisoncramer avatar Sep 20 '25 20:09 harrisoncramer

I'll work on this migration shortly. We'll probably have to have a migration tool such that when someone upgrades, it prompts them to install the latest version of Go or something. Will think on it.

harrisoncramer avatar Sep 20 '25 20:09 harrisoncramer