-
Notifications
You must be signed in to change notification settings - Fork 18k
go mod: something goes wrong with private git projects when imports with the suffix .git #34812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The error message here is telling you exactly what is wrong: B's The path in the |
@bcmills Thanks for response. git.example.net/a/repository imports git.example.net/go/b: cannot find module providing package git.example.net/go/b |
Your options include:
|
@bcmills replace git.example.net/go/b.git => git.example.net/go/b latest I got another error git.example.net/go/a/repository imports git.example.net/go/b/xxx: unrecognized import path "git.example.net/go/b" (https fetch: Get https://git.example.net/go/b?go-get=1: x509: certificate signed by unknown authority) But when I tried go get -u -v git.example.net/go/b and it goes well. It seems something strange happened here. |
You'll want to replace I don't know why |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
There're 2 private git projects, A and B. Both use go mod.
Project A's go mod, for example, like this:
In project A, I import project B.
Project B's go mod, for example, like this:
And I build the project A.
What did you expect to see?
build pass
What did you see instead?
The text was updated successfully, but these errors were encountered: