Skip to content

Go get from a git site will not read git config insteadOf any more on go1.13 but go1.12 #34102

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
lunny opened this issue Sep 5, 2019 · 4 comments

Comments

@lunny
Copy link

lunny commented Sep 5, 2019

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

go version go1.13 darwin/amd64

Does this issue reproduce with the latest release?

Yes

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

GOHOSTARCH="amd64"
GOHOSTOS="darwin"

What did you do?

go get [a private git repository]

What did you expect to see?

go: finding [a private git repository] latest

What did you see instead?

	Gitea: Unauthorized
	Cannot find repository <repositoryname>
	fatal: Could not read from remote repository.

	Please make sure you have the correct access rights
	and the repository exists.

This works perfect on go1.12 but not go1.13. I have a similiar configuration on ~/.gitconfig as below:

[url "git@github.com:golang/"]
        insteadOf = https://golang.org/x/
@lunny
Copy link
Author

lunny commented Sep 5, 2019

This is a mistake.

@lunny lunny closed this as completed Sep 5, 2019
@joeky888
Copy link

joeky888 commented Sep 5, 2019

HI @lunny, how did you solve this?

This is most likely related to #34094

@lunny
Copy link
Author

lunny commented Sep 6, 2019

This issue is a gitea's problem. go-gitea/gitea#8100 will fix that.
@joeky888 Sorry, I'm not familiar with gitlab.

@joeky888
Copy link

joeky888 commented Sep 6, 2019

Thanks @lunny, actually we are using gitea.

@golang golang locked and limited conversation to collaborators Sep 5, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

3 participants