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

Issue 6441158: environs: allow PutTools to specify a version.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by rog
Modified:
11 years, 8 months ago
Reviewers:
mp+120165
Visibility:
Public.

Description

environs: allow PutTools to specify a version. https://code.launchpad.net/~rogpeppe/juju-core/029-environs-fix-puttools/+merge/120165 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : environs: make PutTools work correctly with build tags. #

Patch Set 3 : environs: make PutTools work correctly with build tags. #

Patch Set 4 : environs: allow PutTools to specify a version. #

Total comments: 8

Patch Set 5 : environs: allow PutTools to specify a version. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -52 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M environs/dummy/environs.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M environs/ec2/ec2.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M environs/tools.go View 1 2 3 4 6 chunks +27 lines, -27 lines 0 comments Download
M environs/tools_test.go View 1 2 3 chunks +11 lines, -11 lines 0 comments Download
D version/bumpversion.go View 1 2 1 chunk +0 lines, -11 lines 0 comments Download
M version/version.go View 1 2 3 4 1 chunk +17 lines, -1 line 0 comments Download
M version/version_test.go View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5
rog
Please take a look.
11 years, 8 months ago (2012-08-17 13:29:56 UTC) #1
rog
Please take a look.
11 years, 8 months ago (2012-08-17 14:49:58 UTC) #2
niemeyer
So much nicer, thanks a lot rog. https://codereview.appspot.com/6441158/diff/7001/environs/tools.go File environs/tools.go (right): https://codereview.appspot.com/6441158/diff/7001/environs/tools.go#newcode63 environs/tools.go:63: // If ...
11 years, 8 months ago (2012-08-17 15:22:06 UTC) #3
niemeyer
LGTM, btw.
11 years, 8 months ago (2012-08-17 15:22:16 UTC) #4
rog
11 years, 8 months ago (2012-08-17 15:37:39 UTC) #5
*** Submitted:

environs: allow PutTools to specify a version.

R=niemeyer
CC=
https://codereview.appspot.com/6441158

https://codereview.appspot.com/6441158/diff/7001/environs/tools.go
File environs/tools.go (right):

https://codereview.appspot.com/6441158/diff/7001/environs/tools.go#newcode63
environs/tools.go:63: // If vers is non-nil, a FORCE_VERSION file will be
written into the
On 2012/08/17 15:22:06, niemeyer wrote:
> We don't have to explain the implementation here. It can change while
preserving
> the intended semantics:
> 
> // If vers is provided the uploaded tools are forced into being that
> // version rather than the real version in version.Current.

Done.

https://codereview.appspot.com/6441158/diff/7001/environs/tools.go#newcode65
environs/tools.go:65: // TODO(rog) find binaries from $PATH when not using a
development
On 2012/08/17 15:22:06, niemeyer wrote:
> This should be moved onto the function itself so the content isn't inlined
into
> the documentation.

Done.

https://codereview.appspot.com/6441158/diff/7001/version/version.go
File version/version.go (right):

https://codereview.appspot.com/6441158/diff/7001/version/version.go#newcode29
version/version.go:29: return
On 2012/08/17 15:22:06, niemeyer wrote:
> Hmm.. an error while reading it is fine, but if it contains invalid data we
> panic? Seems inconsistent. Either it's fine to ignore a bogus file, or it's
not,
> IMO. I'd vote for panicking in both cases, since this is rarely used and
> ignoring such an error will make us dig for what's wrong longer.

Done.
Sign in to reply to this message.

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