Skip to content

Commit 47ee315

Browse files
authored
ci: fix the deprecated docker-compose command (#154)
* ci: fix the deprecated docker-compose command
1 parent d4c8fea commit 47ee315

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Setup integration test infrastructure
3838
run: |
3939
cd ./example/hasura
40-
docker-compose up -d
40+
docker compose up -d
4141
- name: Lint
4242
uses: golangci/golangci-lint-action@v6
4343
with:

example/graphqldev/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ require (
88
)
99

1010
require (
11+
github.com/coder/websocket v1.8.12 // indirect
1112
github.com/google/uuid v1.6.0 // indirect
12-
nhooyr.io/websocket v1.8.10 // indirect
1313
)
1414

1515
replace github.com/hasura/go-graphql-client => ../../

example/graphqldev/go.sum

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
github.com/coder/websocket v1.8.12 h1:5bUXkEPPIbewrnkU8LTCLVaxi4N4J8ahufH2vlo4NAo=
12
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
23
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
34
github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
@@ -17,5 +18,3 @@ go.opentelemetry.io/otel/trace v1.6.3/go.mod h1:GNJQusJlUgZl9/TQBPKU/Y/ty+0iVB5f
1718
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
1819
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
1920
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
20-
nhooyr.io/websocket v1.8.10 h1:mv4p+MnGrLDcPlBoWsvPP7XCzTYMXP9F9eIGoKbgx7Q=
21-
nhooyr.io/websocket v1.8.10/go.mod h1:rN9OFWIUwuxg4fR5tELlYC04bXYowCP9GX47ivo2l+c=

subscription_graphql_ws_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ func waitService(endpoint string, timeoutSecs int) error {
7171
if res != nil {
7272
body, err := io.ReadAll(res.Body)
7373
if err != nil {
74-
return fmt.Errorf(res.Status)
74+
return errors.New(res.Status)
7575
}
76-
return fmt.Errorf(string(body))
76+
return errors.New(string(body))
7777
}
7878
return errors.New("unknown error")
7979
}

subscriptions_transport_ws.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func (stw *subscriptionsTransportWS) OnMessage(ctx *SubscriptionContext, subscri
155155

156156
// try to parse the error object
157157
var payload interface{}
158-
err := fmt.Errorf(string(message.Payload))
158+
err := errors.New(string(message.Payload))
159159
jsonErr := json.Unmarshal(message.Payload, &payload)
160160
if jsonErr == nil {
161161
var errMsg string

0 commit comments

Comments
 (0)