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

Issue 6301080: environs/ec2: fixes from go vet checking

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

Description

environs/ec2: fixes from go vet checking There are also some other fixes suggested: state/topology.go:72:2: struct field tag "relation-role" not compatible with reflect.StructTag.Get state/topology.go:73:2: struct field tag "relation-name" not compatible with reflect.StructTag.Get store/store.go:122:5: struct field tag "_id" not compatible with reflect.StructTag.Get store/store.go:123:5: struct field tag "t" not compatible with reflect.StructTag.Get I wonder if we should use the standard tag format for these tags (`yaml:"relation-role"`). https://code.launchpad.net/~rogpeppe/juju-core/govet-fixes/+merge/110261 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : environs/ec2: fixes from go vet checking #

Total comments: 2

Patch Set 3 : environs/ec2: fixes from go vet checking #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M environs/ec2/cloudinit_test.go View 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

Messages

Total messages: 4
rog
Please take a look.
11 years, 10 months ago (2012-06-14 08:40:38 UTC) #1
TheMue
Mostly LGTM, only one little comment. Thanks for the hint with the tags, I'll change ...
11 years, 10 months ago (2012-06-14 09:02:37 UTC) #2
niemeyer
Thanks for finding these issues Rog. LGTM https://codereview.appspot.com/6301080/diff/2001/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/6301080/diff/2001/environs/ec2/ec2.go#newcode282 environs/ec2/ec2.go:282: return nil, ...
11 years, 10 months ago (2012-06-14 19:33:42 UTC) #3
rog
11 years, 10 months ago (2012-06-19 10:45:39 UTC) #4
*** Submitted:

environs/ec2: fixes from go vet checking

There are also some other fixes suggested:

state/topology.go:72:2: struct field tag "relation-role" not compatible with
reflect.StructTag.Get
state/topology.go:73:2: struct field tag "relation-name" not compatible with
reflect.StructTag.Get
store/store.go:122:5: struct field tag "_id" not compatible with
reflect.StructTag.Get
store/store.go:123:5: struct field tag "t" not compatible with
reflect.StructTag.Get

I wonder if we should use the standard tag format for these
tags (`yaml:"relation-role"`).

R=TheMue, niemeyer
CC=
https://codereview.appspot.com/6301080
Sign in to reply to this message.

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