Skip to content

Commit bfa4147

Browse files
authored
Merge pull request #175 from buildkite/pipe-1886-list-clusters-tool-failing-to-return-a-result-with-latest-go
chore(deps): upgrade go-buildkite to fix issue with list pipelines json
2 parents 89b5c1c + 38ca8fe commit bfa4147

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.24.5
55
require (
66
github.com/alecthomas/kong v1.12.1
77
github.com/buildkite/buildkite-logs v0.6.1
8-
github.com/buildkite/go-buildkite/v4 v4.9.0
8+
github.com/buildkite/go-buildkite/v4 v4.9.1
99
github.com/cenkalti/backoff/v5 v5.0.3
1010
github.com/mark3labs/mcp-go v0.41.1
1111
github.com/mattn/go-isatty v0.0.20

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ github.com/buildkite/buildkite-logs v0.6.1 h1:5SlAsAFYKy1rl3j7GNldgeOzBMbuKYSgdF
8080
github.com/buildkite/buildkite-logs v0.6.1/go.mod h1:ejxwp0IDk7Wd0yTH0Cvnw8GgRGnpboe6Up4k9SGmWTg=
8181
github.com/buildkite/go-buildkite/v4 v4.9.0 h1:/zfx4LiEzPtT/oSciSfRxuvKrPmIk+luv4m0oK0Dy1I=
8282
github.com/buildkite/go-buildkite/v4 v4.9.0/go.mod h1:DlebrRJqpZttXDjCW+MJ1QyW9AN++ZWt/UbPtKdbSSk=
83+
github.com/buildkite/go-buildkite/v4 v4.9.1-0.20251019231328-cbce06947c8d h1:J40fKUyAlDiYQIJ+06KwrvcOQyFSk+vroXGa8i0IAPA=
84+
github.com/buildkite/go-buildkite/v4 v4.9.1-0.20251019231328-cbce06947c8d/go.mod h1:DlebrRJqpZttXDjCW+MJ1QyW9AN++ZWt/UbPtKdbSSk=
85+
github.com/buildkite/go-buildkite/v4 v4.9.1 h1:dA32pinTsHMTCHO84awc9W9Y21knlPjd/ZOSntMPIb0=
86+
github.com/buildkite/go-buildkite/v4 v4.9.1/go.mod h1:DlebrRJqpZttXDjCW+MJ1QyW9AN++ZWt/UbPtKdbSSk=
8387
github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4=
8488
github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM=
8589
github.com/cenkalti/backoff/v5 v5.0.3 h1:ZN+IMa753KfX5hd8vVaMixjnqRZ3y8CuJKRKj1xcsSM=

pkg/buildkite/clusters_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func TestListClusters(t *testing.T) {
5959
assert.NoError(err)
6060

6161
textContent := getTextResult(t, result)
62-
assert.JSONEq(`{"headers":{"Link":""},"items":[{"id":"cluster-id","name":"cluster-name","created_by":{}}]}`, textContent.Text)
62+
assert.JSONEq(`{"headers":{"Link":""},"items":[{"id":"cluster-id","name":"cluster-name","created_by":{},"maintainers":{}}]}`, textContent.Text)
6363
}
6464

6565
func TestGetCluster(t *testing.T) {
@@ -91,5 +91,5 @@ func TestGetCluster(t *testing.T) {
9191
assert.NoError(err)
9292

9393
textContent := getTextResult(t, result)
94-
assert.JSONEq("{\"id\":\"cluster-id\",\"name\":\"cluster-name\",\"created_by\":{}}", textContent.Text)
94+
assert.JSONEq("{\"id\":\"cluster-id\",\"name\":\"cluster-name\",\"created_by\":{},\"maintainers\":{}}", textContent.Text)
9595
}

0 commit comments

Comments
 (0)