fix(global): Multiple small fixes and upgrade of go + goswagger
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Matthieu 'JP' DERASSE
2022-11-21 17:22:17 +00:00
parent b1f168286f
commit 5f4e7e5be6
22 changed files with 155 additions and 567 deletions

View File

@ -19,7 +19,7 @@ import (
)
// minimumGolangVersion is the minimum minor required for the app to work.
const minimumGolangVersion = "1.18.4"
const minimumGolangVersion = "1.19.3"
// installation directory for fresh install.
// will be prefixed by $HOME.
@ -200,9 +200,9 @@ func (g Golang) DescribePostInstall(path string) string {
descriptions := []string{
`For your environment to work correctly, we will add if needed the following environment variable to your .bashrc:
export GOPATH=\"$HOME/go\"`,
export GOPATH="$HOME/go"`,
fmt.Sprintf(" export GOROOT=\"%s\"", path),
` "PATH=\"$GOROOT/bin:$GOPATH/bin:$PATH\"
` PATH="$GOROOT/bin:$GOPATH/bin:$PATH"
You will have to reopen a new terminal to apply the changes or execute the following command:

View File

@ -18,7 +18,7 @@ import (
)
// minimumGolangVersion is the minimum minor required for the app to work.
const minimumSwaggerVersion = "0.29.0"
const minimumSwaggerVersion = "0.30.3"
// installation directory for fresh install.
// will be prefixed by $HOME.
@ -195,7 +195,7 @@ func (s Swagger) Install(path string) error {
func (s Swagger) DescribePostInstall(path string) string {
return `For your environment to work correctly, we will add if needed the following environment variable to your .bashrc:
PATH=\"$HOME/bin:$PATH\"
PATH="$HOME/bin:$PATH"
You will have to reopen a new terminal to apply the changes or execute the following command: