Skip to content

Commit 7d66dd1

Browse files
committed
Upgrade go version
1 parent 2f34d57 commit 7d66dd1

File tree

8 files changed

+12
-14
lines changed

8 files changed

+12
-14
lines changed

.github/workflows/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v2
1919
with:
20-
go-version: ^1.17
20+
go-version: ^1.18
2121
id: go
2222

2323
- name: Set up Node

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
- name: Set up Go
8484
uses: actions/setup-go@v2
8585
with:
86-
go-version: ^1.17
86+
go-version: ^1.18
8787
id: go
8888

8989
- name: Set up Node

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- name: Setup Go
6464
uses: actions/setup-go@v2
6565
with:
66-
go-version: ^1.17
66+
go-version: ^1.18
6767
id: go
6868

6969
- name: Setup Node

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN make clean ui
1818

1919

2020
# STEP 2 build executable binary
21-
FROM golang:1.17-alpine as builder
21+
FROM golang:1.18-alpine as builder
2222

2323
# Install git + SSL ca certificates.
2424
# Git is required for fetching the dependencies.

docker/ci.Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# executes binary build excluding UI
22

3-
# STEP 2 build executable binary
4-
FROM golang:1.17-alpine as builder
5-
63
# define RELEASE=1 to hide commit hash
74
ARG RELEASE={{ env "RELEASE" }}
5+
FROM golang:1.18-alpine as builder
86

97
WORKDIR /build
108

docker/tmpl.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ RUN make clean ui
2020

2121

2222
# STEP 2 build executable binary
23-
FROM golang:1.17-alpine as builder
2423

2524
# define RELEASE=1 to hide commit hash
2625
ARG RELEASE={{ env "RELEASE" }}
26+
FROM golang:1.18-alpine as builder
2727

2828
# Install git + SSL ca certificates.
2929
# Git is required for fetching the dependencies.

util/goversion/constraint.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Approach from https://github.com/theckman/goconstraint/
22

33
// Package goversion should only be used as a blank import. If imported, it
4-
// will only compile if the Go runtime version is >= 1.17.
4+
// will only compile if the Go runtime version is >= 1.18.
55
package goversion
66

7-
// This will fail to compile if the Go runtime version isn't >= 1.17.
8-
var _ = __EVCC_REQUIRES_GO_VERSION_1_17__
7+
// This will fail to compile if the Go runtime version isn't >= 1.18.
8+
var _ = __EVCC_REQUIRES_GO_VERSION_1_18__

util/goversion/version.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
//go:build go1.17
2-
// +build go1.17
1+
//go:build go1.18
2+
// +build go1.18
33

44
package goversion
55

6-
const __EVCC_REQUIRES_GO_VERSION_1_17__ = uint8(0)
6+
const __EVCC_REQUIRES_GO_VERSION_1_18__ = uint8(0)

0 commit comments

Comments
 (0)