chore: use go 1.22 (#11007)
This commit is contained in:
parent
9d05716341
commit
ce29ae58a1
13 changed files with 10 additions and 30 deletions
2
.github/workflows/default.yml
vendored
2
.github/workflows/default.yml
vendored
|
|
@ -1,7 +1,7 @@
|
|||
name: Default
|
||||
|
||||
env:
|
||||
GO_VERSION: ^1.21
|
||||
GO_VERSION: ^1.22
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
|
|||
2
.github/workflows/documentation.yml
vendored
2
.github/workflows/documentation.yml
vendored
|
|
@ -1,7 +1,7 @@
|
|||
name: Deploy updated templates
|
||||
|
||||
env:
|
||||
GO_VERSION: ^1.21
|
||||
GO_VERSION: ^1.22
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
|
|||
2
.github/workflows/nightly.yml
vendored
2
.github/workflows/nightly.yml
vendored
|
|
@ -1,7 +1,7 @@
|
|||
name: Nightly Build
|
||||
|
||||
env:
|
||||
GO_VERSION: ^1.21
|
||||
GO_VERSION: ^1.22
|
||||
|
||||
on:
|
||||
schedule: # runs on the default branch: master
|
||||
|
|
|
|||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -1,7 +1,7 @@
|
|||
name: Release
|
||||
|
||||
env:
|
||||
GO_VERSION: ^1.21
|
||||
GO_VERSION: ^1.22
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
|
|||
2
.github/workflows/website.yml
vendored
2
.github/workflows/website.yml
vendored
|
|
@ -1,7 +1,7 @@
|
|||
name: Deploy data to website
|
||||
|
||||
env:
|
||||
GO_VERSION: ^1.21
|
||||
GO_VERSION: ^1.22
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
run:
|
||||
go: "1.21"
|
||||
go: "1.22"
|
||||
|
||||
issues:
|
||||
exclude:
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ RUN make ui
|
|||
|
||||
|
||||
# STEP 2 build executable binary
|
||||
FROM --platform=$BUILDPLATFORM golang:1.21-alpine as builder
|
||||
FROM --platform=$BUILDPLATFORM golang:1.22-alpine as builder
|
||||
|
||||
# Install git + SSL ca certificates.
|
||||
# Git is required for fetching the dependencies.
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ You'll find everything you need in our [documentation](https://docs.evcc.io/).
|
|||
|
||||
## Contribute
|
||||
|
||||
To build evcc from source, [Go][1] 1.21 and [Node][2] 18 are required.
|
||||
To build evcc from source, [Go][1] 1.22 and [Node][2] 18 are required.
|
||||
|
||||
Build and run go backend. The UI becomes available at http://127.0.0.1:7070/
|
||||
|
||||
|
|
@ -134,5 +134,5 @@ While evcc is open source, we would also like to encourage vendors to provide op
|
|||
|
||||
The personal sponsor token requires a [Github Sponsorship](https://github.com/sponsors/evcc-io) and can be requested at [sponsor.evcc.io](https://sponsor.evcc.io/).
|
||||
|
||||
[1]: https://golang.org
|
||||
[1]: https://go.dev
|
||||
[2]: https://nodejs.org/
|
||||
|
|
|
|||
|
|
@ -235,7 +235,6 @@ func configureChargers(static []config.Named, names ...string) error {
|
|||
continue
|
||||
}
|
||||
|
||||
cc := cc
|
||||
g.Go(func() error {
|
||||
instance, err := charger.NewFromConfig(cc.Type, cc.Other)
|
||||
if err != nil {
|
||||
|
|
@ -253,7 +252,6 @@ func configureChargers(static []config.Named, names ...string) error {
|
|||
}
|
||||
|
||||
for _, conf := range configurable {
|
||||
conf := conf
|
||||
g.Go(func() error {
|
||||
cc := conf.Named()
|
||||
|
||||
|
|
@ -315,7 +313,6 @@ func configureVehicles(static []config.Named, names ...string) error {
|
|||
continue
|
||||
}
|
||||
|
||||
cc := cc
|
||||
g.Go(func() error {
|
||||
instance, err := vehicleInstance(cc)
|
||||
if err != nil {
|
||||
|
|
@ -340,7 +337,6 @@ func configureVehicles(static []config.Named, names ...string) error {
|
|||
devs2 := make([]config.ConfigurableDevice[api.Vehicle], 0, len(configurable))
|
||||
|
||||
for _, conf := range configurable {
|
||||
conf := conf
|
||||
g.Go(func() error {
|
||||
cc := conf.Named()
|
||||
|
||||
|
|
|
|||
4
go.mod
4
go.mod
|
|
@ -1,8 +1,6 @@
|
|||
module github.com/evcc-io/evcc
|
||||
|
||||
go 1.21.1
|
||||
|
||||
toolchain go1.21.3
|
||||
go 1.22.0
|
||||
|
||||
require (
|
||||
dario.cat/mergo v1.0.0
|
||||
|
|
|
|||
1
main.go
1
main.go
|
|
@ -8,7 +8,6 @@ import (
|
|||
|
||||
"github.com/evcc-io/evcc/cmd"
|
||||
"github.com/evcc-io/evcc/server/assets"
|
||||
_ "github.com/evcc-io/evcc/util/goversion" // require minimum go version
|
||||
_ "golang.org/x/crypto/x509roots/fallback" // fallback certificates
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
// Approach from https://github.com/theckman/goconstraint/
|
||||
|
||||
// Package goversion should only be used as a blank import. If imported, it
|
||||
// will only compile if the Go runtime version is >= 1.21.
|
||||
package goversion
|
||||
|
||||
// This will fail to compile if the Go runtime version isn't >= 1.21.
|
||||
var _ = __EVCC_REQUIRES_GO_VERSION_1_21__
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
//go:build go1.21
|
||||
|
||||
package goversion
|
||||
|
||||
const __EVCC_REQUIRES_GO_VERSION_1_21__ = uint8(0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue