Skip to content

Commit

Permalink
feat: bump Go to 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
odsod committed Sep 30, 2024
1 parent b6f9b3b commit 0ebf2af
Show file tree
Hide file tree
Showing 10 changed files with 117 additions and 118 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Setup Sage
uses: einride/sage/actions/setup@master
with:
go-version: 1.22
go-version: 1.23

- name: Make
run: make
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup Sage
uses: einride/sage/actions/setup@master
with:
go-version: 1.22
go-version: 1.23

- name: Make
run: make
Expand Down
2 changes: 1 addition & 1 deletion .sage/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module go.einride.tech/cloudrunner/.sage

go 1.21

require go.einride.tech/sage v0.298.0
require go.einride.tech/sage v0.314.0
4 changes: 2 additions & 2 deletions .sage/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
go.einride.tech/sage v0.298.0 h1:XakQxXJeuP1B0pVX9ebSLIRSFmUryilDA9wX443YNeA=
go.einride.tech/sage v0.298.0/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ=
go.einride.tech/sage v0.314.0 h1:PcJQD7yk+U9+nvGDOGXNV91cywzoHn540MxJRpu+w+E=
go.einride.tech/sage v0.314.0/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ=
2 changes: 1 addition & 1 deletion cloudclient/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func handleHTTPResponseToGRPCRequest(errInput error) error {
)
}
// Other HTTP responses to gRPC requests are assumed to be transient.
return status.Errorf(codes.Unavailable, errorMessage)
return status.Error(codes.Unavailable, errorMessage)
}

func isContentTypeHTML(msg string) bool {
Expand Down
1 change: 0 additions & 1 deletion cloudclient/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ func TestHandleHTTPResponseToGRPCRequest(t *testing.T) {
),
},
} {
tt := tt
t.Run(tt.name, func(t *testing.T) {
actual := handleHTTPResponseToGRPCRequest(tt.err)
assert.Equal(t, status.Code(actual), status.Code(tt.expected))
Expand Down
1 change: 0 additions & 1 deletion clouderror/wrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ func Test_WrapTransient(t *testing.T) {
expectedCode: codes.Unavailable,
},
} {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
got := WrapTransient(tt.err, "boom")
Expand Down
72 changes: 37 additions & 35 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
module go.einride.tech/cloudrunner

go 1.21
go 1.22.7

toolchain go1.23.1

require (
cloud.google.com/go/compute/metadata v0.5.0
cloud.google.com/go/compute/metadata v0.5.2
cloud.google.com/go/profiler v0.4.1
cloud.google.com/go/pubsub v1.42.0
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.48.1
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.24.1
github.com/GoogleCloudPlatform/opentelemetry-operations-go/propagator v0.48.1
cloud.google.com/go/pubsub v1.43.0
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.48.2
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.24.2
github.com/GoogleCloudPlatform/opentelemetry-operations-go/propagator v0.48.2
github.com/google/go-cmp v0.6.0
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0
github.com/soheilhy/cmux v0.1.5
go.einride.tech/protobuf-sensitive v0.8.0
go.opentelemetry.io/contrib/detectors/gcp v1.29.0
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0
go.opentelemetry.io/contrib/instrumentation/host v0.54.0
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0
go.opentelemetry.io/contrib/instrumentation/runtime v0.54.0
go.opentelemetry.io/otel v1.29.0
go.opentelemetry.io/otel/bridge/opencensus v1.29.0
go.opentelemetry.io/otel/sdk v1.29.0
go.opentelemetry.io/otel/sdk/metric v1.29.0
go.opentelemetry.io/contrib/detectors/gcp v1.30.0
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.55.0
go.opentelemetry.io/contrib/instrumentation/host v0.55.0
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.55.0
go.opentelemetry.io/contrib/instrumentation/runtime v0.55.0
go.opentelemetry.io/otel v1.30.0
go.opentelemetry.io/otel/bridge/opencensus v1.30.0
go.opentelemetry.io/otel/sdk v1.30.0
go.opentelemetry.io/otel/sdk/metric v1.30.0
go.uber.org/zap v1.27.0
go.uber.org/zap/exp v0.2.0
golang.org/x/net v0.28.0
golang.org/x/oauth2 v0.22.0
golang.org/x/net v0.29.0
golang.org/x/oauth2 v0.23.0
golang.org/x/sync v0.8.0
google.golang.org/api v0.194.0
google.golang.org/genproto v0.0.0-20240814211410-ddb44dafa142
google.golang.org/grpc v1.65.0
google.golang.org/grpc/examples v0.0.0-20240802160953-e524655becd8
google.golang.org/api v0.199.0
google.golang.org/genproto v0.0.0-20240924160255-9d4c2d233b61
google.golang.org/grpc v1.67.0
google.golang.org/grpc/examples v0.0.0-20240927220217-941102b7811f
google.golang.org/protobuf v1.34.2
gopkg.in/yaml.v3 v3.0.1
gotest.tools/v3 v3.5.1
Expand All @@ -40,12 +42,12 @@ require github.com/rogpeppe/go-internal v1.12.0 // indirect

require (
cloud.google.com/go v0.115.1 // indirect
cloud.google.com/go/auth v0.9.1 // indirect
cloud.google.com/go/auth v0.9.5 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.4 // indirect
cloud.google.com/go/monitoring v1.20.3 // indirect
cloud.google.com/go/trace v1.10.11 // indirect
cloud.google.com/go/monitoring v1.21.1 // indirect
cloud.google.com/go/trace v1.11.1 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.24.1 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.48.1 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.48.2 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
Expand All @@ -55,23 +57,23 @@ require (
github.com/google/pprof v0.0.0-20240528025155-186aa0362fba // indirect
github.com/google/s2a-go v0.1.8 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
github.com/googleapis/gax-go/v2 v2.13.0 // indirect
github.com/lufia/plan9stats v0.0.0-20240819163618-b1d8f4d146e7 // indirect
github.com/lufia/plan9stats v0.0.0-20240909124753-873cd0166683 // indirect
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
github.com/shirou/gopsutil/v4 v4.24.7 // indirect
github.com/shirou/gopsutil/v4 v4.24.8 // indirect
github.com/shoenig/go-m1cpu v0.1.6 // indirect
github.com/tklauser/go-sysconf v0.3.14 // indirect
github.com/tklauser/numcpus v0.8.0 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/otel/metric v1.29.0 // indirect
go.opentelemetry.io/otel/trace v1.29.0 // indirect
go.opentelemetry.io/otel/metric v1.30.0 // indirect
go.opentelemetry.io/otel/trace v1.30.0 // indirect
go.uber.org/multierr v1.10.0 // indirect
golang.org/x/crypto v0.26.0 // indirect
golang.org/x/sys v0.24.0 // indirect
golang.org/x/text v0.17.0 // indirect
golang.org/x/crypto v0.27.0 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/text v0.18.0 // indirect
golang.org/x/time v0.6.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240730163845-b1a4ccb954bf // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
)
Loading

0 comments on commit 0ebf2af

Please sign in to comment.