From 83f3d1e192dd5997b3b8bb2f68274032a3237152 Mon Sep 17 00:00:00 2001 From: Frank Yang Date: Tue, 26 Mar 2019 13:04:55 +0800 Subject: [PATCH] Merge PR #3975: Missing `source ~/.bash_profile` when setting the go environment --- .pending/bugfixes/gaia/3974-Fix-go-env-sett | 1 + docs/gaia/installation.md | 4 ++-- docs/translations/cn/gaia/installation.md | 5 +++-- docs/translations/kr/gaia/installation.md | 7 ++++--- 4 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 .pending/bugfixes/gaia/3974-Fix-go-env-sett diff --git a/.pending/bugfixes/gaia/3974-Fix-go-env-sett b/.pending/bugfixes/gaia/3974-Fix-go-env-sett new file mode 100644 index 000000000000..e71f42b754cd --- /dev/null +++ b/.pending/bugfixes/gaia/3974-Fix-go-env-sett @@ -0,0 +1 @@ +3974 Fix go env setting in installation.md \ No newline at end of file diff --git a/docs/gaia/installation.md b/docs/gaia/installation.md index 48f0f71a7492..20e5ffa44a84 100644 --- a/docs/gaia/installation.md +++ b/docs/gaia/installation.md @@ -9,8 +9,8 @@ Install `go` by following the [official docs](https://golang.org/doc/install). R ```bash 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 GOBIN=\$GOPATH/bin" >> ~/.bash_profile +echo "export PATH=\$PATH:\$GOBIN" >> ~/.bash_profile source ~/.bash_profile ``` diff --git a/docs/translations/cn/gaia/installation.md b/docs/translations/cn/gaia/installation.md index 043d6f7af06a..932ae6a52e0b 100644 --- a/docs/translations/cn/gaia/installation.md +++ b/docs/translations/cn/gaia/installation.md @@ -9,8 +9,9 @@ ```bash 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 GOBIN=\$GOPATH/bin" >> ~/.bash_profile +echo "export PATH=\$PATH:\$GOBIN" >> ~/.bash_profile +source ~/.bash_profile ``` ::: 提示 diff --git a/docs/translations/kr/gaia/installation.md b/docs/translations/kr/gaia/installation.md index 4eba582f363a..5cfba9dea85f 100755 --- a/docs/translations/kr/gaia/installation.md +++ b/docs/translations/kr/gaia/installation.md @@ -7,10 +7,11 @@ 공식 [Go 문서](https://golang.org/doc/install)를 따라서 `go`를 설치하십시오. `$GOPATH`, `$GOBIN`, 그리고 `$PATH`의 환경을 꼭 세팅하세요. 예시: ```bash -mkdir -p $HOME/go/b4n +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 GOBIN=\$GOPATH/bin" >> ~/.bash_profile +echo "export PATH=\$PATH:\$GOBIN" >> ~/.bash_profile +source ~/.bash_profile ``` ::: tip