mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04: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
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
|
||||
|
||||
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
|
||||
|
||||
|
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:
|
||||
|
||||
* 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
2
go.mod
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -57,7 +57,7 @@
|
||||
"matchDatasources": [
|
||||
"golang-version"
|
||||
],
|
||||
"allowedVersions": "1.18"
|
||||
"allowedVersions": "1.19"
|
||||
},
|
||||
{
|
||||
"matchManagers": [
|
||||
|
Loading…
Reference in New Issue
Block a user