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

Comments

Projects
None yet
6 participants
@exts
Copy link

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

This comment has been minimized.

Copy link

commented Aug 22, 2018

@gopherbot, please add label modules

@gopherbot gopherbot added the modules label Aug 22, 2018

@408445006

This comment has been minimized.

Copy link

commented Sep 7, 2018

@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

This comment has been minimized.

Copy link
Member

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 this to the Go1.12 milestone Sep 7, 2018

@bcmills

This comment has been minimized.

Copy link
Member

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 join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.