Skip to content

Migrate from github.com/xanzy/go-gitlab to gitlab.com/gitlab-org/api/client-go#343

Merged
simu merged 3 commits into
masterfrom
deps/go-gitlab
May 15, 2026
Merged

Migrate from github.com/xanzy/go-gitlab to gitlab.com/gitlab-org/api/client-go#343
simu merged 3 commits into
masterfrom
deps/go-gitlab

Conversation

@simu
Copy link
Copy Markdown
Member

@simu simu commented May 13, 2026

The github.com/xanzy/go-gitlab package was adopted by GitLab end of 2024. This PR updates Lieutenant to use the latest version of the official GitLab client-go package. See the individual commits for:

  • Switching to the GitLab v0.x version of the package
  • Updating the GitLab client-go package to v1
  • Updating the GitLab client-go package to v2

Follow-up for #342

Checklist

  • Keep pull requests small so they can be easily reviewed.
  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog
  • Link this PR to related issues.

@simu simu requested a review from bastjan May 13, 2026 08:10
@simu simu force-pushed the deps/go-gitlab branch from 882ec01 to 967d987 Compare May 13, 2026 08:14
simu added 3 commits May 13, 2026 10:43
Release v1.0.0 normalized all integers in the client package to `int64`.
Most of the code diff updates our code for this change.

Additionally, most fields of the `gitlab.RepositoryAccessToken` type have
been moved to a nested `gitlab.PersonalAccessToken`, which required a
change to our tests.
@simu simu force-pushed the deps/go-gitlab branch from 967d987 to f537a08 Compare May 13, 2026 08:44
@simu simu merged commit b4ea856 into master May 15, 2026
6 checks passed
@simu simu deleted the deps/go-gitlab branch May 15, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants