diff --git a/.pending/improvements/gaia/4042-Add-description b/.pending/improvements/gaia/4042-Add-description new file mode 100644 index 0000000000..03ed9cc618 --- /dev/null +++ b/.pending/improvements/gaia/4042-Add-description @@ -0,0 +1 @@ +#4042 Update docs and scripts to include the correct `GO111MODULE=on` environment variable. diff --git a/docs/gaia/installation.md b/docs/gaia/installation.md index 20e5ffa44a..a3ce834ac0 100644 --- a/docs/gaia/installation.md +++ b/docs/gaia/installation.md @@ -11,6 +11,7 @@ mkdir -p $HOME/go/bin echo "export GOPATH=$HOME/go" >> ~/.bash_profile echo "export GOBIN=\$GOPATH/bin" >> ~/.bash_profile echo "export PATH=\$PATH:\$GOBIN" >> ~/.bash_profile +echo "export GO111MODULE=on" >> ~/.bash_profile source ~/.bash_profile ``` diff --git a/docs/translations/cn/gaia/installation.md b/docs/translations/cn/gaia/installation.md index 932ae6a52e..4c92fa2beb 100644 --- a/docs/translations/cn/gaia/installation.md +++ b/docs/translations/cn/gaia/installation.md @@ -11,6 +11,7 @@ mkdir -p $HOME/go/bin echo "export GOPATH=$HOME/go" >> ~/.bash_profile echo "export GOBIN=\$GOPATH/bin" >> ~/.bash_profile echo "export PATH=\$PATH:\$GOBIN" >> ~/.bash_profile +echo "export GO111MODULE=on" >> ~/.bash_profile source ~/.bash_profile ``` diff --git a/docs/translations/kr/gaia/installation.md b/docs/translations/kr/gaia/installation.md index 5cfba9dea8..da390e18b5 100755 --- a/docs/translations/kr/gaia/installation.md +++ b/docs/translations/kr/gaia/installation.md @@ -11,6 +11,7 @@ mkdir -p $HOME/go/bin echo "export GOPATH=$HOME/go" >> ~/.bash_profile echo "export GOBIN=\$GOPATH/bin" >> ~/.bash_profile echo "export PATH=\$PATH:\$GOBIN" >> ~/.bash_profile +echo "export GO111MODULE=on" >> ~/.bash_profile source ~/.bash_profile ``` diff --git a/scripts/install/install_sdk_arm.sh b/scripts/install/install_sdk_arm.sh index ef9e56ece0..ca00860918 100644 --- a/scripts/install/install_sdk_arm.sh +++ b/scripts/install/install_sdk_arm.sh @@ -22,7 +22,7 @@ echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile mkdir go echo "export GOPATH=$HOME/go" >> ~/.profile echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.profile - +echo "export GO111MODULE=on" >> ~/.profile source ~/.profile # get the code and move into repo diff --git a/scripts/install/install_sdk_ubuntu.sh b/scripts/install/install_sdk_ubuntu.sh index 079eed8312..dfd1e921a4 100644 --- a/scripts/install/install_sdk_ubuntu.sh +++ b/scripts/install/install_sdk_ubuntu.sh @@ -25,7 +25,7 @@ echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile mkdir go echo "export GOPATH=$HOME/go" >> ~/.profile echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.profile - +echo "export GO111MODULE=on" >> ~/.profile source ~/.profile # get the code and move into repo