export GOPRIVATE=*它确实有效 参考:could not read Username for 'https://github.com': terminal prompts disabled · Issue #3104 · fatih/vim-go · GitHub