Skip to content

Commit 77dfdcf

Browse files
authored
update to go1.18 (#1281)
Signed-off-by: Evan Baker <[email protected]>
1 parent 9d1f202 commit 77dfdcf

File tree

14 files changed

+16
-16
lines changed

14 files changed

+16
-16
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.203.0/containers/go/.devcontainer/base.Dockerfile
22

33
# [Choice] Go version (use -bullseye variants on local arm64/Apple Silicon): 1, 1.16, 1.17, 1-bullseye, 1.16-bullseye, 1.17-bullseye, 1-buster, 1.16-buster, 1.17-buster
4-
ARG VARIANT="1.17-bullseye"
5-
FROM mcr.microsoft.com/vscode/devcontainers/go:0-${VARIANT}
4+
ARG VARIANT="1.18"
5+
FROM mcr.microsoft.com/vscode/devcontainers/go:${VARIANT}
66

77
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
88
ARG NODE_VERSION="none"

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17
99
// Append -bullseye or -buster to pin to an OS version.
1010
// Use -bullseye variants on local arm64/Apple Silicon.
11-
"VARIANT": "1-bullseye",
11+
"VARIANT": "1.18-bullseye",
1212
// Options
1313
"NODE_VERSION": "none"
1414
}

.github/workflows/crdgen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
crdgen:
77
strategy:
88
matrix:
9-
go-version: ['1.17']
9+
go-version: ['1.18']
1010
os: [ubuntu-latest]
1111
name: CRDs are Generated
1212
runs-on: ${{ matrix.os }}

.github/workflows/cyclonus-netpol-extended-nightly-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- uses: actions/setup-go@v2
2929
with:
30-
go-version: "^1.17"
30+
go-version: "^1.18"
3131

3232
- name: Setup Kind
3333
uses: engineerd/[email protected]

.github/workflows/cyclonus-netpol-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- uses: actions/setup-go@v2
2929
with:
30-
go-version: '^1.17'
30+
go-version: '^1.18'
3131

3232
- name: Setup Kind
3333
uses: engineerd/[email protected]

.pipelines/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN echo "deb http://archive.ubuntu.com/ubuntu/ bionic multiverse" | sudo tee -a
1111
RUN echo "deb http://archive.ubuntu.com/ubuntu/ bionic universe" | sudo tee -a /etc/apt/sources.list
1212
RUN echo "deb http://archive.ubuntu.com/ubuntu/ bionic main" | sudo tee -a /etc/apt/sources.list
1313
RUN apt-get update && apt-get install -y iptables ipset iproute2 ebtables
14-
RUN wget -qO- https://golang.org/dl/go1.17.linux-amd64.tar.gz | tar zxf - -C /usr/lib/
14+
RUN wget -qO- https://golang.org/dl/go1.18.linux-amd64.tar.gz | tar zxf - -C /usr/lib/
1515
ENV PATH="/usr/lib/go/bin/:${PATH}"
1616
ENV GOROOT="/usr/lib/go"
1717
ENV GOPATH="/root/go"

Dockerfile.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker.io/golang:1.17
1+
FROM docker.io/golang:1.18
22

33
RUN apt-get update \
44
&& apt-get install -y zip \

build/tools/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/Azure/azure-container-networking/build/tools
22

3-
go 1.17
3+
go 1.18
44

55
require (
66
github.com/AlekSi/gocov-xml v1.0.0

cns/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM docker.io/alpine:latest as certs
22
RUN apk --update add ca-certificates
33

4-
FROM docker.io/golang:1.17 AS builder
4+
FROM docker.io/golang:1.18 AS builder
55
ARG VERSION
66
ARG CNS_AI_PATH
77
ARG CNS_AI_ID

cns/windows.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build cns
2-
FROM docker.io/golang:1.17 AS builder
2+
FROM docker.io/golang:1.18 AS builder
33
# Build args
44
ARG VERSION
55
ARG CNS_AI_PATH

0 commit comments

Comments
 (0)