Merge pull request #329 from hashicorp/warn-compatability
Warn compatability
This commit is contained in:
commit
87689f5f19
@ -5,6 +5,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
"os"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
@ -187,6 +188,22 @@ func BaseCommand(ctx context.Context, log hclog.Logger, logOutput io.Writer, opt
|
|||||||
}
|
}
|
||||||
bc.ui = ui
|
bc.ui = ui
|
||||||
|
|
||||||
|
outputExperimentalWarning := true
|
||||||
|
if val, ok := os.LookupEnv("VAGRANT_SUPPRESS_GO_EXPERIMENTAL_WARNING"); ok {
|
||||||
|
if v, err := strconv.ParseBool(val); err == nil && v {
|
||||||
|
outputExperimentalWarning = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if outputExperimentalWarning {
|
||||||
|
ui.Output(`
|
||||||
|
This is an experimental version of Vagrant. Please note that some things may
|
||||||
|
not work as you expect and this version of Vagrant is not compatible with the
|
||||||
|
stable version of Vagrant. For more information about vagrant-go read the docs
|
||||||
|
at https://www.vagrantup.com/docs/experimental/vagrant_go. To disable this
|
||||||
|
warning set the environment variable 'VAGRANT_SUPPRESS_GO_EXPERIMENTAL_WARNING'.
|
||||||
|
`)
|
||||||
|
}
|
||||||
|
|
||||||
homeConfigPath, err := paths.NamedVagrantConfig(bc.flagBasis)
|
homeConfigPath, err := paths.NamedVagrantConfig(bc.flagBasis)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
@ -289,6 +289,11 @@ Vagrant will default to using a system provided `ssh` on Windows. This
|
|||||||
environment variable can also be used to disable that behavior to force Vagrant to
|
environment variable can also be used to disable that behavior to force Vagrant to
|
||||||
use the embedded `ssh` executable by setting it to `0`.
|
use the embedded `ssh` executable by setting it to `0`.
|
||||||
|
|
||||||
|
## `VAGRANT_SUPPRESS_GO_EXPERIMENTAL_WARNING`
|
||||||
|
|
||||||
|
If this is set, Vagrant-go will not output a warning message about compatibility
|
||||||
|
with Vagrant-ruby. This does not effect the stable Ruby release of Vagrant.
|
||||||
|
|
||||||
## `VAGRANT_WINCURL_DISABLE`
|
## `VAGRANT_WINCURL_DISABLE`
|
||||||
|
|
||||||
If set Vagrant will use the mingw build of curl which uses the installer provided
|
If set Vagrant will use the mingw build of curl which uses the installer provided
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user