Skip to content

Commit a69ea4c

Browse files
committed
Upgrade go version
1 parent eaffad4 commit a69ea4c

File tree

8 files changed

+21
-21
lines changed

8 files changed

+21
-21
lines changed

.github/workflows/default.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Default
22

3-
on:
3+
on:
44
push:
55
branches:
66
- master
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v2
1919
with:
20-
go-version: ^1.16
20+
go-version: ^1.18
2121
id: go
2222

2323
- name: Set up Node

.github/workflows/nightly.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Nightly Build
22

3-
on:
3+
on:
44
schedule: # runs on the default branch: master
55
- cron: '0 2 * * *' # run at 2 AM UTC
66
workflow_dispatch:
@@ -21,7 +21,7 @@ jobs:
2121
name: check latest commit is less than a day
2222
if: ${{ github.event_name == 'schedule' }}
2323
run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false"
24-
24+
2525
call-build-workflow:
2626
name: Call Build
2727
needs: check_date
@@ -82,9 +82,9 @@ jobs:
8282
- name: Set up Go
8383
uses: actions/setup-go@v2
8484
with:
85-
go-version: ^1.16
85+
go-version: ^1.18
8686
id: go
87-
87+
8888
- name: Set up Node
8989
uses: actions/setup-node@v2
9090
with:
@@ -112,12 +112,12 @@ jobs:
112112
run: |
113113
for filename in release/*.deb; do
114114
# goreleaser creates armel packages for armv6, which is wrong
115-
# until this is fixed, ignore armv6
115+
# until this is fixed, ignore armv6
116116
if [[ "$filename" == *"armv6"* ]]; then
117117
echo "Skipping $filename"
118118
continue
119119
fi
120120
121121
echo "Pushing $filename to 'unstable'"
122122
cloudsmith push deb evcc/unstable/any-distro/any-version $filename
123-
done
123+
done

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ jobs:
6161
- name: Setup Go
6262
uses: actions/setup-go@v2
6363
with:
64-
go-version: ^1.16
64+
go-version: ^1.18
6565
id: go
66-
66+
6767
- name: Setup Node
6868
uses: actions/setup-node@v2
6969
with:
@@ -105,12 +105,12 @@ jobs:
105105
run: |
106106
for filename in release/*.deb; do
107107
# goreleaser creates armel packages for armv6, which is wrong
108-
# until this is fixed, ignore armv6
108+
# until this is fixed, ignore armv6
109109
if [[ "$filename" == *"armv6"* ]]; then
110110
echo "Skipping $filename"
111111
continue
112112
fi
113113
114114
echo "Pushing $filename to 'stable'"
115115
cloudsmith push deb evcc/stable/any-distro/any-version $filename
116-
done
116+
done

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.16-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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# STEP 2 build executable binary
2-
FROM golang:1.16-alpine as builder
2+
FROM golang:1.18-alpine as builder
33

44
WORKDIR /build
55

docker/tmpl.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.16-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.

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.16.
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.16.
8-
var _ = __EVCC_REQUIRES_GO_VERSION_1_16__
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.16
2-
// +build go1.16
1+
//go:build go1.18
2+
// +build go1.18
33

44
package goversion
55

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

0 commit comments

Comments
 (0)