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: detect move due to custom import #8548

Closed
rsc opened this issue Aug 19, 2014 · 3 comments
Closed

cmd/go: detect move due to custom import #8548

rsc opened this issue Aug 19, 2014 · 3 comments
Milestone

Comments

@rsc
Copy link
Contributor

rsc commented Aug 19, 2014

Right now rsc.io/pdf redirects to github.
If I decide I'd rather have it on code.google.com/p/rsc with my other code, I can update
the web page but 'go get -u' will not reresolve the name. It should, and ideally it
would flip to the new repo if the local copy is completely unmodified.
@minux
Copy link
Member

minux commented Aug 19, 2014

Comment 1:

note: unmodified also means without additional branches/tags/bookmarks
and other VCS-specific things.
probably it makes sense to just print out something like this:
$ go get -u rsc.io/pdf
The upstream has moved from github to google code, please inspect
if the current repository in $GOPATH/src/rsc.io/pdf doesn't have
anything you want to preserve, and then rerun this command to
force the update to replace the current check out:
go get -force -u rsc.io/pdf

Labels changed: added repo-main.

@gopherbot
Copy link

Comment 2:

CL https://golang.org/cl/147170043 mentions this issue.

@rsc
Copy link
Contributor Author

rsc commented Sep 26, 2014

Comment 3:

This issue was closed by revision f3a98de.

Status changed to Fixed.

@rsc rsc added fixed labels Sep 26, 2014
@rsc rsc added this to the Go1.4 milestone Apr 14, 2015
@rsc rsc removed the release-go1.4 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 25, 2018
If you do 'go get -u rsc.io/pdf' and then rsc.io/pdf's redirect
changes to point somewhere else, after this CL a later
'go get -u rsc.io/pdf' will tell you that.

Fixes golang#8548.

LGTM=iant
R=golang-codereviews, iant
CC=adg, golang-codereviews, n13m3y3r, r
https://golang.org/cl/147170043
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 26, 2018
If you do 'go get -u rsc.io/pdf' and then rsc.io/pdf's redirect
changes to point somewhere else, after this CL a later
'go get -u rsc.io/pdf' will tell you that.

Fixes golang#8548.

LGTM=iant
R=golang-codereviews, iant
CC=adg, golang-codereviews, n13m3y3r, r
https://golang.org/cl/147170043
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 9, 2018
If you do 'go get -u rsc.io/pdf' and then rsc.io/pdf's redirect
changes to point somewhere else, after this CL a later
'go get -u rsc.io/pdf' will tell you that.

Fixes golang#8548.

LGTM=iant
R=golang-codereviews, iant
CC=adg, golang-codereviews, n13m3y3r, r
https://golang.org/cl/147170043
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 30, 2018
If you do 'go get -u rsc.io/pdf' and then rsc.io/pdf's redirect
changes to point somewhere else, after this CL a later
'go get -u rsc.io/pdf' will tell you that.

Fixes golang#8548.

LGTM=iant
R=golang-codereviews, iant
CC=adg, golang-codereviews, n13m3y3r, r
https://golang.org/cl/147170043
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants