























I want to make a private goproxy, direct lookup with gitlab.
This service should be stateless, use user’s gitlab token. It works with
1 | |
Go document said that to use authenticate over HTTPS, we can use .netrc file.
But, by default, Git will only use $HOME/.netrc (supported by CURL).
Go vcs (cmd/go/internal/vcs) will follow NETRC env, but is not enough. We need make Git to use NETRC too.
Git contrib provider git-credential-netrc.
We can configure Git to use it.
1 | |
Then, Go mod and Git and both works with NETRC env
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。