Skip to content

cmd/go: get -u on repository cloned using git@github.com URL fails #8850

@gopherbot

Description

@gopherbot

by Lytvynov.A.V:

This is most likely related to https://golang.org/cl/147170043/

A package was cloned into GOPATH using git clone git@github.com/user/path.
Running go get -u on tip reports:

package github.com/shuddle/user/repo: /Users/cronos/go/src/github.com/user/repo is from
git@github.com:user/repo, should be from https://github.com/user/repo

git remote -v shows remotes as git@github.com:user/repo.
Changing remote URL to https://... fixes go get -u

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions