Skip to content
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: unexpected module path when using get on a repo with incorrect path casing #27154

Closed
exts opened this issue Aug 22, 2018 · 4 comments
Closed
Labels
FrozenDueToAge modules NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone

Comments

@exts
Copy link

exts commented Aug 22, 2018

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.11rc1

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

windows 10 64bit

What did you do?

  • Create a module
  • Upload module to bitbucket or github (I'm using bitbucket)
  • Call go get bitbucket.org/lowercase/reponame (the user is upper cased, but I called it using all lower case)
  • Let the execution call, watch the execution fail.

What did you expect to see?

  • If you run the command with the correct url case the error goes away and it properly grabs the latest module from the repo

What did you see instead?

  • `go: bitbucket.org/lowercase/vsc@v0.0.2: parsing go.mod: unexpected module path "bitbucket.org/LOWERCASE/vsc"
@thepudds
Copy link
Contributor

@gopherbot, please add label modules

@408445006
Copy link

@exts, have you solved the problem? i have i the problem
go version go1.11 windows/amd64

when i run
go mod init
go get -u gitlab.haochang.tv/chenqiang/go-redlock@v1.0.0
go: gitlab.haochang.tv/chenqiang/go-redlock@v1.0.0: parsing go.mod: unexpected module path "redlock"

@agnivade agnivade changed the title unexpected module path when using go get on a repo with incorrect path casing cmd/go: unexpected module path when using get on a repo with incorrect path casing Sep 7, 2018
@agnivade
Copy link
Contributor

agnivade commented Sep 7, 2018

I think the module path in a go.mod is case-sensitive. @bcmills for further comments.

@408445006 - Your issue is different. You are trying to get go-redlock, but you have redlock inside go.mod.

@agnivade agnivade added the NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made. label Sep 7, 2018
@agnivade agnivade added this to the Go1.12 milestone Sep 7, 2018
@bcmills
Copy link
Contributor

bcmills commented Sep 11, 2018

The module path is case-sensitive and must match the path requested of go get.

(URLs are only specified to be case-insensitive as far as the domain, and in general we don't know whether a given server is case-sensitive or not, so we rely on the module declaration to clarify the intended module path.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.
Projects
None yet
Development

No branches or pull requests

6 participants