【发布时间】:2020-05-12 09:18:49
【问题描述】:
我正在尝试运行:
$ go get github.com/scipipe/scipipe/...
但我收到错误消息:
go: GOPATH entry cannot start with shell metacharacter '~': "~/go"
我已经尝试重新安装 go 但它没有效果。其实我连version都跑不了:
$ go version
go: GOPATH entry cannot start with shell metacharacter '~': "~/go"
我在 Mac 上安装了 Homebrew。这怎么能破得这么严重?请帮忙。
【问题讨论】:
-
我以前没有见过这个,但一个明显的尝试是将 gopath 中的
~更改为/home/username/。你试过吗? -
不,我本来希望通过重新安装来解决这个问题,但是请问,我该怎么做呢?