Upgrade Go version to 1.19

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2022-10-28 14:24:32 +02:00
parent caadd50056
commit 256f0e64b3
7 changed files with 7 additions and 26 deletions

View File

@ -57,21 +57,7 @@ It is also recommended to use golangci-lint (and [gofumpt](https://github.com/mv
## Nested Go modules
As this project contains nested Go modules, it is recommended to create a local Go workspace, so your IDE can lint multiple modules at once.
```go
go 1.18
use (
.
./hack
./operators/constellation-node-operator
)
```
You can find an introduction in the [Go workspace tutorial](https://go.dev/doc/tutorial/workspaces).
If you have changed dependencies within a module and have run `go mod tidy`, you can use `go work sync` to sync versions of the same dependency of the different modules.
As this project contains nested Go modules, we use a Go work file to ease integration with IDEs. You can find an introduction in the [Go workspace tutorial](https://go.dev/doc/tutorial/workspaces).
## Recommended VS Code Settings

View File

@ -5,12 +5,7 @@ The following are instructions for building all components in the constellation
Prerequisites:
* 20 GB disk space
* [Go 1.18](https://go.dev/doc/install). Can be installed with these commands:
```sh
wget https://go.dev/dl/go1.18.linux-amd64.tar.gz && sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.18.linux-amd64.tar.gz && export PATH=$PATH:/usr/local/go/bin
```
* [Latest version of Go](https://go.dev/doc/install).
* [Docker](https://docs.docker.com/engine/install/). Can be installed with these commands on Ubuntu 22.04: `sudo apt update && sudo apt install docker.io`. As the build spawns docker containers your user account either needs to be in the `docker` group (Add with `sudo usermod -a -G docker $USER`) or you have to run builds with `sudo`. When using `sudo` remember that your root user might (depending on your distro and local config) not have the go binary in it's PATH. The current PATH can be forwarded to the root env with `sudo env PATH=$PATH <cmd>`.
* Packages on Ubuntu:

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/edgelesssys/constellation/v2
go 1.18
go 1.19
replace (
k8s.io/api v0.0.0 => k8s.io/api v0.25.3

View File

@ -1,4 +1,4 @@
go 1.18
go 1.19
use (
.

View File

@ -1,6 +1,6 @@
module github.com/edgelesssys/constellation/v2/hack
go 1.18
go 1.19
replace (
k8s.io/api v0.0.0 => k8s.io/api v0.25.3

View File

@ -1,6 +1,6 @@
module github.com/edgelesssys/constellation/operators/constellation-node-operator/v2
go 1.18
go 1.19
require (
cloud.google.com/go/compute v1.7.0

View File

@ -57,7 +57,7 @@
"matchDatasources": [
"golang-version"
],
"allowedVersions": "1.18"
"allowedVersions": "1.19"
},
{
"matchManagers": [