]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add get -f flag
authorRuss Cox <rsc@golang.org>
Tue, 28 Oct 2014 15:14:25 +0000 (11:14 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 28 Oct 2014 15:14:25 +0000 (11:14 -0400)
commitea295a4cfbb0641f58c41d3722e7e8fb3b3f493f
treefc27ac51a5ca82d531552bbdfe7b2fa94321d041
parent21a9141ab364ecfea016bf36b8222f4747afa1fb
cmd/go: add get -f flag

get -u now checks that remote repo paths match the
ones predicted by the import paths: if you are get -u'ing
rsc.io/pdf, it has to be checked out from the right location.
This is important in case the rsc.io/pdf redirect changes.

In some cases, people have good reasons to use
non-standard remote repos. Add -f flag to allow that.
The f can stand for force or fork, as you see fit.

Fixes #8850.

LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/164120043
src/cmd/go/get.go
src/cmd/go/test.bash