diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a50b95b..96bd685 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -29,7 +29,7 @@ jobs: - name: Install Go uses: actions/setup-go@v4 with: - go-version: 1.22.x + go-version: 1.26.4 - name: Enable pulling Go modules from private sourcegrahp/sourcegraph run: git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/" - name: Check Go module tidiness @@ -53,7 +53,7 @@ jobs: name: Test strategy: matrix: - go-version: [ 1.22.x ] + go-version: [ 1.26.4 ] platform: [ ubuntu-latest ] runs-on: ${{ matrix.platform }} steps: diff --git a/.tool-versions b/.tool-versions index ee4aa2f..8ccf4b6 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -golang 1.23.4 \ No newline at end of file +golang 1.26.4 \ No newline at end of file diff --git a/clientv1_test.go b/clientv1_test.go index a80013c..19d5c3c 100644 --- a/clientv1_test.go +++ b/clientv1_test.go @@ -5,7 +5,6 @@ import ( "connectrpc.com/connect" "github.com/sourcegraph/sourcegraph/lib/errors" - "github.com/sourcegraph/sourcegraph/lib/pointers" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -71,7 +70,7 @@ func TestParseResponseAndError(t *testing.T) { } for _, test := range tests { t.Run(test.name, func(t *testing.T) { - _, err := parseResponseAndError(connect.NewResponse(pointers.Ptr("foo")), test.err()) + _, err := parseResponseAndError(connect.NewResponse(new("foo")), test.err()) if test.wantErr == "" { assert.NoError(t, err) } else { diff --git a/go.mod b/go.mod index 6db7b3d..f5e0e0d 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/sourcegraph/sourcegraph-accounts-sdk-go -go 1.23.4 +go 1.26.4 require ( cloud.google.com/go/pubsub v1.45.3