Skip to content

Commit 64de6ef

Browse files
committed
Upgrade the go version to 1.24 and upgrade dependencies to latest versions.
1 parent 0d360c8 commit 64de6ef

4 files changed

Lines changed: 139 additions & 165 deletions

File tree

agent/metrics/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"time"
2323

2424
monitoring "cloud.google.com/go/monitoring/apiv3"
25-
googlepb "github.com/golang/protobuf/ptypes/timestamp"
25+
googlepb "google.golang.org/protobuf/types/known/timestamppb"
2626
gax "github.com/googleapis/gax-go/v2"
2727
apioption "google.golang.org/api/option"
2828
metricpb "google.golang.org/genproto/googleapis/api/metric"

app/proxy.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func requestHandler(ctx context.Context, s types.Store, w http.ResponseWriter, r
210210
requestID := r.Header.Get(HeaderRequestID)
211211
if requestID == "" {
212212
errorMsg := "No request ID specified"
213-
log.Printf(errorMsg)
213+
log.Println(errorMsg)
214214
http.Error(w, errorMsg, http.StatusBadRequest)
215215
return
216216
}
@@ -219,7 +219,7 @@ func requestHandler(ctx context.Context, s types.Store, w http.ResponseWriter, r
219219
request, err := s.ReadRequest(ctx, backendID, requestID)
220220
if err != nil {
221221
errorMsg := fmt.Sprintf("Failed to read the request for %q: %q", requestID, err.Error())
222-
log.Printf(errorMsg)
222+
log.Println(errorMsg)
223223
http.Error(w, errorMsg, http.StatusNotFound)
224224
return
225225
}
@@ -240,7 +240,7 @@ func responseHandler(ctx context.Context, s types.Store, w http.ResponseWriter,
240240
response, err := parseResponse(backendID, r)
241241
if err != nil {
242242
errorMsg := fmt.Sprintf("Failed to read the response body: %q", err.Error())
243-
log.Printf(errorMsg)
243+
log.Println(errorMsg)
244244
http.Error(w, errorMsg, http.StatusBadRequest)
245245
return
246246
}
@@ -250,7 +250,7 @@ func responseHandler(ctx context.Context, s types.Store, w http.ResponseWriter,
250250
close(notFoundErrs)
251251
if len(notFoundErrs) > 0 {
252252
notFoundErr := <-notFoundErrs
253-
log.Printf(notFoundErr.Error())
253+
log.Println(notFoundErr.Error())
254254
http.Error(w, notFoundErr.Error(), http.StatusNotFound)
255255
return
256256
}

go.mod

Lines changed: 37 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,45 @@
11
module github.com/google/inverting-proxy
22

3-
go 1.18
3+
go 1.24.2
44

55
require (
6-
cloud.google.com/go/compute/metadata v0.2.3
7-
cloud.google.com/go/monitoring v1.13.0
8-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
9-
github.com/golang/protobuf v1.5.3
10-
github.com/google/go-cmp v0.5.9
11-
github.com/google/uuid v1.3.0
12-
github.com/googleapis/gax-go/v2 v2.7.1
13-
github.com/gorilla/websocket v1.5.0
14-
golang.org/x/net v0.23.0
15-
golang.org/x/oauth2 v0.7.0
16-
google.golang.org/api v0.114.0
17-
google.golang.org/appengine/v2 v2.0.2
18-
google.golang.org/genproto v0.0.0-20230526161137-0005af68ea54
19-
google.golang.org/genproto/googleapis/api v0.0.0-20230525234035-dd9d682886f9
20-
google.golang.org/grpc v1.56.3
21-
google.golang.org/grpc/examples v0.0.0-20230602173802-c9d3ea567325
6+
cloud.google.com/go/compute/metadata v0.6.0
7+
cloud.google.com/go/monitoring v1.24.2
8+
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8
9+
github.com/google/go-cmp v0.7.0
10+
github.com/google/uuid v1.6.0
11+
github.com/googleapis/gax-go/v2 v2.14.1
12+
github.com/gorilla/websocket v1.5.3
13+
golang.org/x/net v0.39.0
14+
golang.org/x/oauth2 v0.29.0
15+
google.golang.org/api v0.229.0
16+
google.golang.org/appengine/v2 v2.0.6
17+
google.golang.org/genproto v0.0.0-20250422160041-2d3770c4ea7f
18+
google.golang.org/genproto/googleapis/api v0.0.0-20250422160041-2d3770c4ea7f
19+
google.golang.org/grpc v1.72.0
20+
google.golang.org/grpc/examples v0.0.0-20250421233052-f7d488de751d
21+
google.golang.org/protobuf v1.36.6
2222
)
2323

2424
require (
25-
cloud.google.com/go/compute v1.19.1 // indirect
26-
github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
27-
go.opencensus.io v0.24.0 // indirect
28-
golang.org/x/sys v0.18.0 // indirect
29-
golang.org/x/text v0.14.0 // indirect
30-
google.golang.org/appengine v1.6.7 // indirect
31-
google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19 // indirect
32-
google.golang.org/protobuf v1.33.0 // indirect
25+
cloud.google.com/go/auth v0.16.0 // indirect
26+
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
27+
github.com/felixge/httpsnoop v1.0.4 // indirect
28+
github.com/go-logr/logr v1.4.2 // indirect
29+
github.com/go-logr/stdr v1.2.2 // indirect
30+
github.com/golang/protobuf v1.5.4 // indirect
31+
github.com/google/s2a-go v0.1.9 // indirect
32+
github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect
33+
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
34+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0 // indirect
35+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 // indirect
36+
go.opentelemetry.io/otel v1.35.0 // indirect
37+
go.opentelemetry.io/otel/metric v1.35.0 // indirect
38+
go.opentelemetry.io/otel/trace v1.35.0 // indirect
39+
golang.org/x/crypto v0.37.0 // indirect
40+
golang.org/x/sync v0.13.0 // indirect
41+
golang.org/x/sys v0.32.0 // indirect
42+
golang.org/x/text v0.24.0 // indirect
43+
golang.org/x/time v0.11.0 // indirect
44+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250414145226-207652e42e2e // indirect
3345
)

0 commit comments

Comments
 (0)