我正在尝试从本地目录安装 go 包(基本上我检查了现有包并应用了挂起的拉取请求)。
$ # Both commands give a similar output
$ go get -u file:///Users/me/workspaces/go/somepackage
$ go get -u /Users/me/workspaces/go/somepackage
unrecognized import path "[...]" (import path does not begin with hostname)
由于go get
正在下载然后安装,我尝试了:
$ go install /Users/me/workspaces/go/somepackage
[] cannot import absolute path
任何有经验的围棋用户可以帮忙吗?