Skip to content

Commit f3632bc

Browse files
authored
Merge pull request #2775 from Nordix/uplift-go-to-v1.19/furkat
🌱 Uplift go version to v1.19.0
2 parents 2ac245c + 993ebd6 commit f3632bc

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

.github/workflows/cover.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v2
1111
- uses: actions/setup-go@v2
1212
with:
13-
go-version: '^1.18'
13+
go-version: '^1.19'
1414
- run: "PATH=/usr/local/go/bin:$PATH make test-cover"
1515
- uses: codecov/codecov-action@v2
1616
with:

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install go
2121
uses: actions/setup-go@v2
2222
with:
23-
go-version: '^1.18'
23+
go-version: '^1.19'
2424
- name: generate release artifacts
2525
run: |
2626
make release

.golangci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ linters-settings:
124124
arguments:
125125
- disableStutteringCheck
126126
staticcheck:
127-
go: "1.18"
127+
go: "1.19"
128128
stylecheck:
129-
go: "1.18"
129+
go: "1.19"
130130
unused:
131-
go: "1.18"
131+
go: "1.19"
132132

133133
issues:
134134
exclude-rules:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616

1717
# Build the manager binary
18-
FROM golang:1.18 as builder
18+
FROM golang:1.19 as builder
1919
WORKDIR /workspace
2020

2121
# Run this with docker build --build_arg $(go env GOPROXY) to override the goproxy

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ delete-workload-cluster: $(KUBECTL) ## Deletes the example workload Kubernetes c
357357
.PHONY: docker-pull-prerequisites
358358
docker-pull-prerequisites: ## Pull prerequisites for building controller-manager.
359359
docker pull docker/dockerfile:1.4
360-
docker pull docker.io/library/golang:1.18
360+
docker pull docker.io/library/golang:1.19
361361
docker pull gcr.io/distroless/static:latest
362362

363363
.PHONY: docker-build
@@ -603,7 +603,7 @@ release-binary: $(RELEASE_DIR) ## Compile and build release binaries.
603603
-e GOARCH=$(GOARCH) \
604604
-v "$$(pwd):/workspace" \
605605
-w /workspace \
606-
golang:1.18 \
606+
golang:1.19 \
607607
go build -a -ldflags '$(LDFLAGS) -extldflags "-static"' \
608608
-o $(RELEASE_DIR)/$(notdir $(RELEASE_BINARY))-$(GOOS)-$(GOARCH) $(RELEASE_BINARY)
609609

Tiltfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def validate_auth():
105105

106106
tilt_helper_dockerfile_header = """
107107
# Tilt image
108-
FROM golang:1.18 as tilt-helper
108+
FROM golang:1.19 as tilt-helper
109109
# Support live reloading with Tilt
110110
RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/restart.sh && \
111111
wget --output-document /start.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/start.sh && \

docs/book/src/developers/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
### Base requirements
4747

4848
1. Install [go][go]
49-
- Get the latest patch version for go v1.18.
49+
- Get the latest patch version for go v1.19.
5050
2. Install [jq][jq]
5151
- `brew install jq` on macOS.
5252
- `sudo apt install jq` on Windows + WSL2

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module sigs.k8s.io/cluster-api-provider-azure
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/Azure/aad-pod-identity v1.8.9

hack/ensure-go.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ EOF
3131
local go_version
3232
IFS=" " read -ra go_version <<< "$(go version)"
3333
local minimum_go_version
34-
minimum_go_version=go1.18.3
34+
minimum_go_version=go1.19.0
3535
if [[ "${minimum_go_version}" != $(echo -e "${minimum_go_version}\n${go_version[2]}" | sort -s -t. -k 1,1 -k 2,2n -k 3,3n | head -n1) && "${go_version[2]}" != "devel" ]]; then
3636
cat <<EOF
3737
Detected go version: ${go_version[*]}.

hack/tools/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module sigs.k8s.io/cluster-api-provider-azure/hack/tools
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/hashicorp/go-multierror v1.1.1

0 commit comments

Comments
 (0)