{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/31437","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/31437/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/31437/comments","events_url":"https://api.github.com/repos/golang/go/issues/31437/events","html_url":"https://github.com/golang/go/issues/31437","id":432468278,"node_id":"MDU6SXNzdWU0MzI0NjgyNzg=","number":31437,"title":"require and replace doesn't seem to like uppercase","user":{"login":"ryandawsonuk","id":22754674,"node_id":"MDQ6VXNlcjIyNzU0Njc0","avatar_url":"https://avatars0.githubusercontent.com/u/22754674?v=4","gravatar_id":"","url":"https://api.github.com/users/ryandawsonuk","html_url":"https://github.com/ryandawsonuk","followers_url":"https://api.github.com/users/ryandawsonuk/followers","following_url":"https://api.github.com/users/ryandawsonuk/following{/other_user}","gists_url":"https://api.github.com/users/ryandawsonuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ryandawsonuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryandawsonuk/subscriptions","organizations_url":"https://api.github.com/users/ryandawsonuk/orgs","repos_url":"https://api.github.com/users/ryandawsonuk/repos","events_url":"https://api.github.com/users/ryandawsonuk/events{/privacy}","received_events_url":"https://api.github.com/users/ryandawsonuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-04-12T09:18:22Z","updated_at":"2019-04-12T14:29:01Z","closed_at":null,"author_association":"NONE","body":"I was trying to use a submodule under a relative path and set up the go.mod to do a replace like in https://stackoverflow.com/questions/52079662/go-get-cannot-find-local-packages-when-using-modules\r\n\r\nIn my case the github organisation name has an uppercase in it. So think `github.com/Org/repo/proj/submod` But the error when I did a `go build` from the top-level came out with:\r\n\r\n`build github.com/org/repo/proj: cannot load github.com/org/repo/proj/submod: cannot find module providing package github.com/org/repo/proj/submod`\r\n\r\nI then changed the require and replace statements in the top-level go.mod to refer to the submodule with the all-lowercase and then it worked.\r\n \r\ngo version go1.12.1 linux/amd64\r\n\r\nIssue similar to https://github.com/golang/go/issues/26208 and https://github.com/golang/go/issues/27157"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/482595589","html_url":"https://github.com/golang/go/issues/31437#issuecomment-482595589","issue_url":"https://api.github.com/repos/golang/go/issues/31437","id":482595589,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4MjU5NTU4OQ==","user":{"login":"rsc","id":104030,"node_id":"MDQ6VXNlcjEwNDAzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/104030?v=4","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"created_at":"2019-04-12T14:29:01Z","updated_at":"2019-04-12T14:29:01Z","author_association":"CONTRIBUTOR","body":"> build github.com/org/repo/proj: cannot load github.com/org/repo/proj/submod: cannot find module providing package github.com/org/repo/proj/submod\r\n\r\nThis message is saying \"build <PACKAGE>: cannot load <IMPORTED PACKAGE>: reason\". It sounds like (1) your go.mod in github.com/org/repo says 'module github.com/org/repo' with lowercase org, and (2) github.com/org/repo/proj contains a Go import of \"github.com/org/repo/proj/submod\", again with lowercase org.\r\n\r\nWhat matters is what's in the go.mod file and what is in the import statements. It sounds like they are both lowercase.\r\n\r\nWithout details it's hard to say more.\r\n"}}
{"actor":{"display_login":"rsc"}}