Verified Commit 47b65ee9 authored by Patrick Rice's avatar Patrick Rice 🫖 Committed by GitLab
Browse files

Release client-go 2.0

See merge request !2763

BREAKING CHANGE: Release 2.0
parents da7b8a72 3636f076
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
        "ghcr.io/devcontainers/features/docker-in-docker:2": {},
		"ghcr.io/devcontainers-extra/features/mise:1": {},
		"ghcr.io/devcontainers/features/go:1": {
			"version": "1.24"
			"version": "1.25"
		}
	},
	"postStartCommand": "eval \"$(mise activate bash --shims)\" && mise install",
+3 −3
Original line number Diff line number Diff line
@@ -66,8 +66,8 @@ stages:
  parallel:
    matrix:
      - GOLANG_IMAGE_VERSION:
        - '1.24'
        - '1.25'
        - '1.26'

.go:base:
  extends:
@@ -235,8 +235,8 @@ tests:integration:
    GITLAB_TOKEN: "glpat-ACCTEST1234567890123"

    # configure tooling versions
    GOTESTSUM_VERSION: 'v1.12.0'
    GOCOVER_COBERTURA_VERSION: 'v1.2.1-0.20240107185409-0818f3538137'
    GOTESTSUM_VERSION: 'v1.13.0'
    GOCOVER_COBERTURA_VERSION: 'v1.4.0'
    MISE_VERSION: v2025.6.1

    # configure artifact files
+1 −1
Original line number Diff line number Diff line
golang        1.24
golang        1.25
golangci-lint 2.10.1
gofumpt       0.8.0
buf           1.55.1
+1 −1
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ func TestGetUser(t *testing.T) {
        mustWriteHTTPResponse(t, w, "testdata/get_user.json")
    })

    user, _, err := client.Users.GetUser(1, GetUsersOptions{})
    user, _, err := client.Users.GetUser(1, &GetUserOptions{})
    assert.NoError(t, err)
    // ... assertions
}
+7 −4
Original line number Diff line number Diff line
@@ -7,11 +7,13 @@ A GitLab API client enabling Go programs to interact with GitLab in a simple and

[[_TOC_]]

## `client-go` 1.0 Has Been Released!
## `client-go` 2.0 Has Been Released!

We're pleased to announce that version 2.0 has been released for the `client-go` library, which continues our
backwards compatibility guarantee introduced in the 1.0 release by ensuring all breaking changes are included
in a major release version to follow SemVar. For the release 2.0 migration guide, please see the
[Migration Guides](#migration-guides) section below!

We're pleased to announce that version 1.0 has been released for the `client-go` library, which comes with
a backwards-compatibility guarantee. For more details of our major release plans moving forward, and for 
migration guides, please see the [Migration Guides](#migration-guides) section below!

## Usage

@@ -305,6 +307,7 @@ You may also use https://endoflife.date/go to quickly discover the supported Go
major release will publish a migration guide to help users migrate from the previous major release.

- [Migration Guide for 0.X -> 1.X](docs/release-1.0-migration.md)
- [Migration Guide for 1.X -> 2.X](docs/release-2.0-migration.md)

## Contributing

Loading