Skip to content

Commit 3b06f7a

Browse files
golang 1.19.0 (GoogleCloudPlatform#1022)
* update base image to golang:1.19.0-alpine * upgrade golang module to 1.19 * update golang 1.19 dependencies in CI
1 parent 10e8f3e commit 3b06f7a

File tree

15 files changed

+33
-294
lines changed

15 files changed

+33
-294
lines changed

.github/workflows/ci-master.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
include-prerelease: true
3131
- uses: actions/setup-go@v3
3232
with:
33-
go-version: '1.17.5'
33+
go-version: '1.19'
3434
- name: Go Unit Tests
3535
timeout-minutes: 10
3636
run: |

.github/workflows/ci-pr.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
include-prerelease: true
3333
- uses: actions/setup-go@v3
3434
with:
35-
go-version: '1.18'
35+
go-version: '1.19'
3636
- name: Go Unit Tests
3737
timeout-minutes: 10
3838
run: |

.github/workflows/install-dependencies.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ sudo apt-get install -yqq kubectl git
3838
echo "✅ kubectl installed"
3939

4040
# install go
41-
wget https://golang.org/dl/go1.18.linux-amd64.tar.gz
42-
sudo tar -C /usr/local -xzf go1.18.linux-amd64.tar.gz
41+
wget https://golang.org/dl/go1.19.linux-amd64.tar.gz
42+
sudo tar -C /usr/local -xzf go1.19.linux-amd64.tar.gz
4343
echo 'export GOPATH=$HOME/go' >> ~/.profile
4444
echo 'export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin' >> ~/.profile
4545
source ~/.profile

src/checkoutservice/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.18.4-alpine as builder
15+
FROM golang:1.19.0-alpine as builder
1616
RUN apk add --no-cache ca-certificates git
1717
RUN apk add build-base
1818
WORKDIR /src

src/checkoutservice/go.mod

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/GoogleCloudPlatform/microservices-demo/src/checkoutservice
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
cloud.google.com/go/profiler v0.3.0
@@ -21,11 +21,6 @@ require (
2121
cloud.google.com/go/trace v1.0.0 // indirect
2222
github.com/aws/aws-sdk-go v1.43.31 // indirect
2323
github.com/census-instrumentation/opencensus-proto v0.3.0 // indirect
24-
github.com/cespare/xxhash v1.1.0 // indirect
25-
github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4 // indirect
26-
github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1 // indirect
27-
github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1 // indirect
28-
github.com/envoyproxy/protoc-gen-validate v0.1.0 // indirect
2924
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
3025
github.com/google/go-cmp v0.5.8 // indirect
3126
github.com/google/pprof v0.0.0-20220412212628-83db2b799d1f // indirect

src/checkoutservice/go.sum

+6-63
Large diffs are not rendered by default.

src/frontend/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.18.4-alpine as builder
15+
FROM golang:1.19.0-alpine as builder
1616
RUN apk add --no-cache ca-certificates git
1717
RUN apk add build-base
1818
WORKDIR /src

src/frontend/go.mod

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/GoogleCloudPlatform/microservices-demo/src/frontend
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
cloud.google.com/go v0.104.0
@@ -23,11 +23,6 @@ require (
2323
cloud.google.com/go/trace v1.0.0 // indirect
2424
github.com/aws/aws-sdk-go v1.43.31 // indirect
2525
github.com/census-instrumentation/opencensus-proto v0.3.0 // indirect
26-
github.com/cespare/xxhash/v2 v2.1.1 // indirect
27-
github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4 // indirect
28-
github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1 // indirect
29-
github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1 // indirect
30-
github.com/envoyproxy/protoc-gen-validate v0.1.0 // indirect
3126
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
3227
github.com/google/go-cmp v0.5.8 // indirect
3328
github.com/google/pprof v0.0.0-20220412212628-83db2b799d1f // indirect

src/frontend/go.sum

+5-80
Large diffs are not rendered by default.

src/productcatalogservice/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.18.4-alpine AS builder
15+
FROM golang:1.19.0-alpine AS builder
1616
RUN apk add --no-cache ca-certificates git
1717
RUN apk add build-base
1818

src/productcatalogservice/go.mod

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/GoogleCloudPlatform/microservices-demo/src/productcatalogservice
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
cloud.google.com/go/profiler v0.3.0
@@ -21,11 +21,6 @@ require (
2121
cloud.google.com/go/trace v1.0.0 // indirect
2222
github.com/aws/aws-sdk-go v1.43.31 // indirect
2323
github.com/census-instrumentation/opencensus-proto v0.3.0 // indirect
24-
github.com/cespare/xxhash/v2 v2.1.1 // indirect
25-
github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4 // indirect
26-
github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1 // indirect
27-
github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1 // indirect
28-
github.com/envoyproxy/protoc-gen-validate v0.1.0 // indirect
2924
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
3025
github.com/google/pprof v0.0.0-20220412212628-83db2b799d1f // indirect
3126
github.com/googleapis/gax-go/v2 v2.4.0 // indirect

src/productcatalogservice/go.sum

+5-59
Large diffs are not rendered by default.

src/shippingservice/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.18.4-alpine as builder
15+
FROM golang:1.19.0-alpine as builder
1616
RUN apk add --no-cache ca-certificates git
1717
RUN apk add build-base
1818
WORKDIR /src

src/shippingservice/go.mod

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/GoogleCloudPlatform/microservices-demo/src/shippingservice
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
cloud.google.com/go/profiler v0.3.0
@@ -20,11 +20,6 @@ require (
2020
cloud.google.com/go/trace v1.0.0 // indirect
2121
github.com/aws/aws-sdk-go v1.43.31 // indirect
2222
github.com/census-instrumentation/opencensus-proto v0.3.0 // indirect
23-
github.com/cespare/xxhash/v2 v2.1.1 // indirect
24-
github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4 // indirect
25-
github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1 // indirect
26-
github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1 // indirect
27-
github.com/envoyproxy/protoc-gen-validate v0.1.0 // indirect
2823
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
2924
github.com/google/go-cmp v0.5.8 // indirect
3025
github.com/google/pprof v0.0.0-20220412212628-83db2b799d1f // indirect

0 commit comments

Comments
 (0)