-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
cmd/go: project depending on project using modules not building: "error loading module requirements" #31929
Comments
I think you don't need the |
@beoran , that didn't work either.
|
Also, I am able to depend on other internal project with the ".git" in the import statement and the go build command correctly updated the mod file with the project reference. The only difference is that this third project is not using modules. |
The path-mismatch error is due to the lack of This looks like a duplicate of #26232. In the interim, you should be able to work around it using:
|
Actually, for GitLab specifically this is #29888. |
Duplicate of #29888 |
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?
I have a project "a", which uses modules, that has dependency on code that is another project "b" which uses modules.
go.mod line # 1 in project "b":
module <private_gitlab_repo>/<group>/<subgroup>/<project "b" name>
import statement in project "a":
"<private_gitlab_repo>/<group>/<subgroup>/<project "b" name>.git/internal/parser"
What did you expect to see?
go build should complete correctly
What did you see instead?
go: <private_gitlab_repo>/<group>/<subgroup>/<project "b" name>[email protected]: parsing go.mod: unexpected module path "<private_gitlab_repo>/<group>/<subgroup>/<project "b" name>" go: error loading module requirements
What am I doing wrong ?
The text was updated successfully, but these errors were encountered: