Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit 8ed34f8

Browse files
steelingkeithmattix
authored andcommitted
bump version of go to 1.19 (#4972)
bump version of go to 1.19 Signed-off-by: Sean Teeling <[email protected]>
1 parent 56679ed commit 8ed34f8

File tree

20 files changed

+39
-30
lines changed

20 files changed

+39
-30
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- name: golangci-lint
5555
uses: golangci/golangci-lint-action@v3
5656
with:
57-
version: v1.47.0
57+
version: v1.48.0
5858
skip-pkg-cache: true
5959

6060
codegen:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
#build stage
3-
FROM golang:1.17-alpine AS builder
3+
FROM golang:1.19-alpine AS builder
44

55
RUN apk update
66
RUN apk add --no-cache make

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ GIT_SHA=$$(git rev-parse HEAD)
2121
BUILD_DATE_VAR := github.com/openservicemesh/osm/pkg/version.BuildDate
2222
BUILD_VERSION_VAR := github.com/openservicemesh/osm/pkg/version.Version
2323
BUILD_GITCOMMIT_VAR := github.com/openservicemesh/osm/pkg/version.GitCommit
24-
DOCKER_GO_VERSION = 1.17
25-
DOCKER_BUILDX_PLATFORM ?= linux/amd64
24+
DOCKER_GO_VERSION = 1.19
25+
DOCKER_BUILDX_PLATFORM ?= linux/$(shell go env GOARCH)
2626
# Value for the --output flag on docker buildx build.
2727
# https://docs.docker.com/engine/reference/commandline/buildx_build/#output
2828
DOCKER_BUILDX_OUTPUT ?= type=registry

cmd/cli/env.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
66
You may obtain a copy of the License at
77
8-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
99
1010
Unless required by applicable law or agreed to in writing, software
1111
distributed under the License is distributed on an "AS IS" BASIS,
1212
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
16-
Copyright 2020 The OSM contributors
16+
# Copyright 2020 The OSM contributors
1717
1818
Licensed under the MIT License
1919
Permission is hereby granted, free of charge, to any person obtaining a copy

cmd/cli/install.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const (
5757

5858
// chartTGZSource is the `helm package`d representation of the default Helm chart.
5959
// Its value is embedded at build time.
60+
//
6061
//go:embed chart.tgz
6162
var chartTGZSource []byte
6263

cmd/osm-bootstrap/osm-bootstrap.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,9 @@ func (b *bootstrap) ensureMeshConfig() error {
330330
}
331331

332332
// initiatilizeKubernetesEventsRecorder initializes the generic Kubernetes event recorder and associates it with
333+
//
333334
// the osm-bootstrap pod resource. The events recorder allows the osm-bootstap to publish Kubernets events to
334-
// report fatal errors with initializing this application. These events will show up in the output of `kubectl get events`
335+
// report fatal errors with initializing this application. These events will show up in the output of `kubectl get events`
335336
func (b *bootstrap) initiatilizeKubernetesEventsRecorder() error {
336337
bootstrapPod, err := b.getBootstrapPod()
337338
if err != nil {

demo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## System Requirements
44
- MacOS, Linux or WSL2 on Windows
55
- GCC
6-
- Go version [1.17.0 or higher](https://github.com/openservicemesh/osm/issues/2363)
6+
- Go version [1.19.0 or higher](https://github.com/openservicemesh/osm/issues/2363)
77
- Kubectl version 1.15 or higher
88
- Docker CLI
99
- on a Debian based GNU/Linux system: `sudo apt-get install docker`

docs/development_guide/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ OSM leverages [Envoy proxy](https://github.com/envoyproxy/envoy) as a data plane
6363

6464
## Get Go-ing
6565

66-
This Open Service Mesh project uses [Go v1.17.0+](https://golang.org/). If you are not familiar with Go, spend some time with the excellent [Tour of Go](https://tour.golang.org/).
66+
This Open Service Mesh project uses [Go v1.19.0+](https://golang.org/). If you are not familiar with Go, spend some time with the excellent [Tour of Go](https://tour.golang.org/).
6767

6868
## Get the dependencies
6969

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/openservicemesh/osm
22

3-
go 1.17
3+
go 1.19
44

55
require (
66
github.com/AlekSi/gocov-xml v0.0.0-20190121064608-3a14fb1c4737

pkg/bugreport/run_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build withEnvPathSet
12
// +build withEnvPathSet
23

34
package bugreport

0 commit comments

Comments
 (0)