arrow_up: Bump go in Earthly and workflows to ^1.20 (#1213)

* Bump go in Earthly and workflows to ^1.20

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Update go.mod version

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Lint

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Remove pin of go version to get the latest

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Remove minor version

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
Mauro Morales
2023-03-30 16:42:25 +02:00
committed by Itxaka
parent e7807dd66c
commit 961804be0a
5 changed files with 8 additions and 13 deletions

View File

@@ -5,7 +5,6 @@ import (
"embed"
"io"
"io/fs"
"io/ioutil"
"log"
"net/http"
"os"
@@ -210,7 +209,7 @@ func Start(ctx context.Context) error {
args = append(args, "--device", installationDevice)
// create tempfile to store cloud-config, bail out if we fail as we couldn't go much further
file, err := ioutil.TempFile("", "install-webui")
file, err := os.CreateTemp("", "install-webui")
if err != nil {
log.Fatalf("could not create tmpfile for cloud-config: %s", err.Error())
}