Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(6897)

Issue 230460044: do not use go get to fetch new repositories

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years ago by rog
Modified:
9 years ago
Reviewers:
mattyw, mp+258017, martin.hilton
Visibility:
Public.

Description

do not use go get to fetch new repositories "go get" always recursively fetches dependencies, and this feature cannot be disabled. This means that when godeps used "go get -d" to fetch a repository, it could fetch unwanted tip dependencies. https://code.launchpad.net/~rogpeppe/godeps/004-no-go-get/+merge/258017 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 9

Patch Set 2 : do not use go get to fetch new repositories #

Total comments: 1

Patch Set 3 : do not use go get to fetch new repositories #

Patch Set 4 : do not use go get to fetch new repositories #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -10 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M godeps.go View 7 chunks +62 lines, -10 lines 0 comments Download

Messages

Total messages: 13
rog
Please take a look.
9 years ago (2015-05-01 11:03:05 UTC) #1
mattyw
LGTM some tests might be useful if you're so inclined. https://codereview.appspot.com/230460044/diff/1/godeps.go File godeps.go (right): https://codereview.appspot.com/230460044/diff/1/godeps.go#newcode172 ...
9 years ago (2015-05-01 11:26:58 UTC) #2
rog
https://codereview.appspot.com/230460044/diff/1/godeps.go File godeps.go (right): https://codereview.appspot.com/230460044/diff/1/godeps.go#newcode172 godeps.go:172: // We would much prefer to just do: On ...
9 years ago (2015-05-01 11:32:54 UTC) #3
rog
On 2015/05/01 11:26:58, mattyw wrote: > LGTM > > some tests might be useful if ...
9 years ago (2015-05-01 11:43:14 UTC) #4
cmars_
https://codereview.appspot.com/230460044/diff/1/godeps.go File godeps.go (right): https://codereview.appspot.com/230460044/diff/1/godeps.go#newcode189 godeps.go:189: rootDir := filepath.Join(buildContext.GOPATH, "src", filepath.FromSlash(root.Root)) What if $GOPATH is ...
9 years ago (2015-05-01 17:36:23 UTC) #5
rog
https://codereview.appspot.com/230460044/diff/1/godeps.go File godeps.go (right): https://codereview.appspot.com/230460044/diff/1/godeps.go#newcode189 godeps.go:189: rootDir := filepath.Join(buildContext.GOPATH, "src", filepath.FromSlash(root.Root)) On 2015/05/01 17:36:23, cmars_ ...
9 years ago (2015-05-01 19:58:07 UTC) #6
rog
Please take a look.
9 years ago (2015-05-05 07:58:52 UTC) #7
mattyw
https://codereview.appspot.com/230460044/diff/20001/godeps.go File godeps.go (right): https://codereview.appspot.com/230460044/diff/20001/godeps.go#newcode189 godeps.go:189: rootDir := filepath.Join(buildContext.GOPATH, "src", filepath.FromSlash(root.Root)) Isn't this code still ...
9 years ago (2015-05-05 08:19:39 UTC) #8
rog
https://codereview.appspot.com/230460044/diff/1/godeps.go File godeps.go (right): https://codereview.appspot.com/230460044/diff/1/godeps.go#newcode200 godeps.go:200: return err On 2015/05/01 17:36:23, cmars_ wrote: > Might ...
9 years ago (2015-05-05 08:21:57 UTC) #9
rog
Please take a look.
9 years ago (2015-05-05 08:25:28 UTC) #10
mattyw
LGTM - but I didn't notice the last problem - so get a review from ...
9 years ago (2015-05-05 08:44:54 UTC) #11
martin.hilton
On 2015/05/05 08:25:28, rog wrote: > Please take a look. LGTM
9 years ago (2015-05-05 08:44:56 UTC) #12
rog
9 years ago (2015-05-05 09:00:25 UTC) #13
*** Submitted:

do not use go get to fetch new repositories

"go get" always recursively fetches dependencies,
and this feature cannot be disabled. This means that
when godeps used "go get -d" to fetch a repository,
it could fetch unwanted tip dependencies.

R=mattyw, cmars_, martin.hilton
CC=
https://codereview.appspot.com/230460044
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b