共计 694 个字符,预计需要花费 2 分钟才能阅读完成。
具体谬误
itech8deMacBook-Pro :: src/go_applet_health_spider/app ‹master› » go get code.baidu.com/map_backend/go_applet_health_spider/app/crawler
# cd .; git clone https://code.baidu.com/map_backend/go_applet_health_spider.git /Users/itech8/data/app/my_app/go/src/code.baidu.com/map_backend/go_applet_health_spider
Cloning into '/Users/itech8/data/app/my_app/go/src/code.baidu.com/map_backend/go_applet_health_spider'...
fatal: could not read Username for 'https://code.baidu.com': terminal prompts disabled
package code.baidu.com/map_backend/go_applet_health_spider/app/crawler: exit status 128
起因 go get disable “terminal prompt” by default(Go get 命令默认禁用 terminal prompt,即终端提醒)
解决方案:环境设置 GIT_TERMINAL_PROMPT=1
export GIT_TERMINAL_PROMPT=1
go get XXX
正文完