Skip to content

Commit

Permalink
Bump dependencies in Go services (#2716)
Browse files Browse the repository at this point in the history
* frontend: Bump Go and gRPC

* productcatalogservice: Bump Go and gRPC

* shippingservice: Bump Go and gRPC

* checkoutservice: Bump Go and gRPC

* Replace "as" with "AS" in Dockerfiles

* Bump Go in GitHub Actions

* Update protos/demo.proto

---------

Co-authored-by: Olivier Bourgeois <[email protected]>
  • Loading branch information
pellared and bourgeoisor authored Sep 5, 2024
1 parent 43947d7 commit ca90f35
Show file tree
Hide file tree
Showing 37 changed files with 12,972 additions and 8,094 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
dotnet-version: '8.0'
- uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.23'
- name: Go Unit Tests
timeout-minutes: 10
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
dotnet-version: '8.0'
- uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.23'
- name: Go Unit Tests
timeout-minutes: 10
run: |
Expand Down
2 changes: 2 additions & 0 deletions protos/demo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ syntax = "proto3";

package hipstershop;

option go_package = "github.com/GoogleCloudPlatform/microservices-demo/hipstershop";

// -----------------Cart service-----------------

service CartService {
Expand Down
2 changes: 1 addition & 1 deletion src/adservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM eclipse-temurin:21@sha256:d2233012784e0b35d893f7802e28d39e39e9422180b4c6f14ed2fb714b0952e5 as builder
FROM eclipse-temurin:21@sha256:d2233012784e0b35d893f7802e28d39e39e9422180b4c6f14ed2fb714b0952e5 AS builder

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion src/cartservice/src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# https://mcr.microsoft.com/product/dotnet/sdk
FROM mcr.microsoft.com/dotnet/sdk:8.0.401-noble@sha256:d37cbb248b78027e3f149ea422bc9dc3bbf5b8c47bd1150e14c9849462235e91 as builder
FROM mcr.microsoft.com/dotnet/sdk:8.0.401-noble@sha256:d37cbb248b78027e3f149ea422bc9dc3bbf5b8c47bd1150e14c9849462235e91 AS builder
WORKDIR /app
COPY cartservice.csproj .
RUN dotnet restore cartservice.csproj \
Expand Down
2 changes: 1 addition & 1 deletion src/checkoutservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.23.0-alpine@sha256:d0b31558e6b3e4cc59f6011d79905835108c919143ebecc58f35965bf79948f4 as builder
FROM golang:1.23.0-alpine@sha256:d0b31558e6b3e4cc59f6011d79905835108c919143ebecc58f35965bf79948f4 AS builder
WORKDIR /src

# restore dependencies
Expand Down
5 changes: 3 additions & 2 deletions src/checkoutservice/genproto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@

# [START gke_checkoutservice_genproto]

PATH=$PATH:$GOPATH/bin
PATH=$PATH:$(go env GOPATH)/bin
protodir=../../protos
outdir=./genproto

protoc --go_out=plugins=grpc:genproto -I $protodir $protodir/demo.proto
protoc --proto_path=$protodir --go_out=./$outdir --go_opt=paths=source_relative --go-grpc_out=./$outdir --go-grpc_opt=paths=source_relative $protodir/demo.proto

# [END gke_checkoutservice_genproto]
Loading

0 comments on commit ca90f35

Please sign in to comment.