mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-12-18 09:22:29 -05:00
Upgrade Go version to 1.19
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
caadd50056
commit
256f0e64b3
7 changed files with 7 additions and 26 deletions
16
.github/docs/conventions.md
vendored
16
.github/docs/conventions.md
vendored
|
|
@ -57,21 +57,7 @@ It is also recommended to use golangci-lint (and [gofumpt](https://github.com/mv
|
||||||
|
|
||||||
## Nested Go modules
|
## 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.
|
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).
|
||||||
|
|
||||||
```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.
|
|
||||||
|
|
||||||
## Recommended VS Code Settings
|
## Recommended VS Code Settings
|
||||||
|
|
||||||
|
|
|
||||||
7
.github/docs/development.md
vendored
7
.github/docs/development.md
vendored
|
|
@ -5,12 +5,7 @@ The following are instructions for building all components in the constellation
|
||||||
Prerequisites:
|
Prerequisites:
|
||||||
|
|
||||||
* 20 GB disk space
|
* 20 GB disk space
|
||||||
* [Go 1.18](https://go.dev/doc/install). Can be installed with these commands:
|
* [Latest version of Go](https://go.dev/doc/install).
|
||||||
|
|
||||||
```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
|
|
||||||
```
|
|
||||||
|
|
||||||
* [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>`.
|
* [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:
|
* Packages on Ubuntu:
|
||||||
|
|
|
||||||
2
go.mod
2
go.mod
|
|
@ -1,6 +1,6 @@
|
||||||
module github.com/edgelesssys/constellation/v2
|
module github.com/edgelesssys/constellation/v2
|
||||||
|
|
||||||
go 1.18
|
go 1.19
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
k8s.io/api v0.0.0 => k8s.io/api v0.25.3
|
k8s.io/api v0.0.0 => k8s.io/api v0.25.3
|
||||||
|
|
|
||||||
2
go.work
2
go.work
|
|
@ -1,4 +1,4 @@
|
||||||
go 1.18
|
go 1.19
|
||||||
|
|
||||||
use (
|
use (
|
||||||
.
|
.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
module github.com/edgelesssys/constellation/v2/hack
|
module github.com/edgelesssys/constellation/v2/hack
|
||||||
|
|
||||||
go 1.18
|
go 1.19
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
k8s.io/api v0.0.0 => k8s.io/api v0.25.3
|
k8s.io/api v0.0.0 => k8s.io/api v0.25.3
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
module github.com/edgelesssys/constellation/operators/constellation-node-operator/v2
|
module github.com/edgelesssys/constellation/operators/constellation-node-operator/v2
|
||||||
|
|
||||||
go 1.18
|
go 1.19
|
||||||
|
|
||||||
require (
|
require (
|
||||||
cloud.google.com/go/compute v1.7.0
|
cloud.google.com/go/compute v1.7.0
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
"matchDatasources": [
|
"matchDatasources": [
|
||||||
"golang-version"
|
"golang-version"
|
||||||
],
|
],
|
||||||
"allowedVersions": "1.18"
|
"allowedVersions": "1.19"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"matchManagers": [
|
"matchManagers": [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue