`go mod tidy` kann das private GitHub-Repository nicht herunterladen

Lesezeit: 1 Minute

Hier ist die Antwort

not found: github.com/me/[email protected]: invalid version: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/ea2baff0eaed39430ee011ad9a011101f13b668d5fcbd9dffdfa1e0a45422b40: exit status 128:
    fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.

Ich habe versucht, einen Datensatz hinzuzufügen ~/.netrc mit dem Passwort eines frisch erstellten persönlichen GitHub-Zugriffstokens und fügen Sie die Konfiguration hinzu ~/.gitconfig

[url "ssh://[email protected]/"]
    insteadOf = https://github.com/

All dies funktioniert nicht.

Wenn ich die Summenprüfung durch deaktiviere GOSUMDB=off go mod tidy dann funktioniert es, aber ich glaube nicht, dass das für mich richtig ist.

1018110cookie-check`go mod tidy` kann das private GitHub-Repository nicht herunterladen

This website is using cookies to improve the user-friendliness. You agree by using the website further.

Privacy policy