You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to import a module at a specific commit from my company's gitlab instance. However, I'm getting the error:
go get git.cloud.myorg.com/devs-group/sdk-go@04819860ddec21ebeeaa9e3be102eb51f39a0304
go: git.cloud.myorg.com/devs-group/sdk-go 04819860ddec21ebeeaa9e3be102eb51f39a0304 => v1.33.1-0.20201216225153-04819860ddec
go get: git.cloud.myorg.com/devs-group/sdk-go@v1.33.1-0.20201216225153-04819860ddec: parsing go.mod:
module declares its path as: github.com/myorg/sdk-go
but was required as: git.cloud.myorg.com/devs-group/sdk-go
The module I'm trying to import is mirrored from a private github repo, hence the github path. We're hosting it on gitlab to expose it to external users. So a couple of questions:
Why does Go care about the module's self-declared path? Why can't I just import it?
I'm not sure I can change the path in sdk-go's go.mod, since others in my org are using this module, so is there a way to get this to work?
The text was updated successfully, but these errors were encountered:
A module has exactly one path, and it can only be used with that path. See go help modules, or see the link above if you want further help. I'm sorry, but I don't see a bug report here.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Not sure
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I'm trying to import a module at a specific commit from my company's gitlab instance. However, I'm getting the error:
The module I'm trying to import is mirrored from a private github repo, hence the github path. We're hosting it on gitlab to expose it to external users. So a couple of questions:
sdk-go
'sgo.mod
, since others in my org are using this module, so is there a way to get this to work?The text was updated successfully, but these errors were encountered: