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

Issue 70770043: all: use errgo instead of fmt.Errorf

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by rog
Modified:
10 years, 1 month ago
Reviewers:
mp+209074, natefinch
Visibility:
Public.

Description

all: use errgo instead of fmt.Errorf Also migrate away from github.com/errgo/errgo. Almost entirely an automatic change. In general, errors.Tracef is almost exactly equivalent to fmt.Errorf - the only difference being the exact type (which isn't exported by the std errors package) and the fact that DeepEquals won't work between two errors created in different places, because the errgo errors have embedded source-location info. The very few manual changes include: - fixes where the tests assume that errors.New() is DeepEqual to errors.New() - one place where a variable "errors" clashed with the package of that name. - one place (agent/agent.go) where errgo.Trace was used - that's now reverted. The only files with manual interventions are these: agent/agent.go cmd/jujud/agent_test.go cmd/jujud/machine.go testing/locking_test.go utils/apt_test.go worker/uniter/uniter.go https://code.launchpad.net/~rogpeppe/juju-core/510-errorf-errgo/+merge/209074 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : all: use errgo instead of fmt.Errorf #

Patch Set 3 : all: use errgo instead of fmt.Errorf #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1820 lines, -1697 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M agent/agent.go View 7 chunks +13 lines, -14 lines 0 comments Download
M agent/bootstrap.go View 5 chunks +9 lines, -8 lines 0 comments Download
M agent/format.go View 2 chunks +3 lines, -1 line 0 comments Download
M agent/tools/toolsdir.go View 5 chunks +9 lines, -9 lines 0 comments Download
M bzr/bzr.go View 5 chunks +7 lines, -6 lines 0 comments Download
M cert/cert.go View 5 chunks +9 lines, -10 lines 0 comments Download
M cert/cert_test.go View 4 chunks +4 lines, -4 lines 0 comments Download
M charm/bundle.go View 3 chunks +4 lines, -3 lines 0 comments Download
M charm/charm.go View 2 chunks +3 lines, -3 lines 0 comments Download
M charm/config.go View 8 chunks +10 lines, -10 lines 0 comments Download
M charm/dir.go View 2 chunks +2 lines, -1 line 0 comments Download
M charm/meta.go View 5 chunks +9 lines, -9 lines 0 comments Download
M charm/repo.go View 11 chunks +12 lines, -10 lines 0 comments Download
M charm/url.go View 6 chunks +12 lines, -11 lines 0 comments Download
M cloudinit/sshinit/configure.go View 2 chunks +2 lines, -1 line 0 comments Download
M cmd/charm-admin/config.go View 2 chunks +2 lines, -3 lines 0 comments Download
M cmd/charm-admin/deletecharm.go View 2 chunks +2 lines, -1 line 0 comments Download
M cmd/charmd/main.go View 2 chunks +4 lines, -2 lines 0 comments Download
M cmd/charmload/main.go View 2 chunks +3 lines, -2 lines 0 comments Download
M cmd/cmd.go View 3 chunks +2 lines, -2 lines 0 comments Download
M cmd/environmentcommand.go View 2 chunks +2 lines, -2 lines 0 comments Download
M cmd/filevar.go View 1 chunk +2 lines, -1 line 0 comments Download
M cmd/juju/addmachine.go View 3 chunks +3 lines, -3 lines 0 comments Download
M cmd/juju/addrelation.go View 2 chunks +2 lines, -2 lines 0 comments Download
M cmd/juju/addunit.go View 2 chunks +2 lines, -4 lines 0 comments Download
M cmd/juju/authorisedkeys_add.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/juju/authorisedkeys_delete.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/juju/authorisedkeys_import.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/juju/bootstrap.go View 5 chunks +5 lines, -5 lines 0 comments Download
M cmd/juju/bootstrap_test.go View 2 chunks +2 lines, -1 line 0 comments Download
M cmd/juju/constraints.go View 3 chunks +3 lines, -4 lines 0 comments Download
M cmd/juju/debughooks.go View 3 chunks +4 lines, -3 lines 0 comments Download
M cmd/juju/debuglog.go View 2 chunks +2 lines, -1 line 0 comments Download
M cmd/juju/deploy.go View 3 chunks +4 lines, -4 lines 0 comments Download
M cmd/juju/destroyenvironment.go View 4 chunks +4 lines, -4 lines 0 comments Download
M cmd/juju/destroymachine.go View 3 chunks +4 lines, -5 lines 0 comments Download
M cmd/juju/destroyrelation.go View 2 chunks +2 lines, -2 lines 0 comments Download
M cmd/juju/destroyservice.go View 2 chunks +3 lines, -3 lines 0 comments Download
M cmd/juju/destroyunit.go View 2 chunks +2 lines, -3 lines 0 comments Download
M cmd/juju/environment.go View 4 chunks +6 lines, -6 lines 0 comments Download
M cmd/juju/expose.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/juju/get.go View 1 chunk +1 line, -2 lines 0 comments Download
M cmd/juju/init.go View 3 chunks +3 lines, -2 lines 0 comments Download
M cmd/juju/publish.go View 8 chunks +12 lines, -11 lines 0 comments Download
M cmd/juju/resolved.go View 2 chunks +3 lines, -4 lines 0 comments Download
M cmd/juju/run.go View 4 chunks +7 lines, -7 lines 0 comments Download
M cmd/juju/scp.go View 3 chunks +4 lines, -2 lines 0 comments Download
M cmd/juju/set.go View 2 chunks +2 lines, -3 lines 0 comments Download
M cmd/juju/ssh.go View 3 chunks +5 lines, -5 lines 0 comments Download
M cmd/juju/switch.go View 3 chunks +3 lines, -3 lines 0 comments Download
M cmd/juju/synctools_test.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/juju/unexpose.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/juju/unset.go View 1 chunk +1 line, -2 lines 0 comments Download
M cmd/juju/upgradecharm.go View 5 chunks +8 lines, -9 lines 0 comments Download
M cmd/juju/upgradejuju.go View 6 chunks +9 lines, -11 lines 0 comments Download
M cmd/jujud/agent.go View 2 chunks +2 lines, -2 lines 0 comments Download
M cmd/jujud/agent_test.go View 6 chunks +6 lines, -10 lines 0 comments Download
M cmd/jujud/bootstrap.go View 3 chunks +3 lines, -2 lines 0 comments Download
M cmd/jujud/machine.go View 8 chunks +14 lines, -13 lines 0 comments Download
M cmd/jujud/main.go View 3 chunks +3 lines, -2 lines 0 comments Download
M cmd/jujud/main_test.go View 3 chunks +3 lines, -3 lines 0 comments Download
M cmd/jujud/run.go View 4 chunks +5 lines, -5 lines 0 comments Download
M cmd/jujud/run_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M cmd/jujud/unit.go View 2 chunks +2 lines, -3 lines 0 comments Download
M cmd/output.go View 3 chunks +3 lines, -3 lines 0 comments Download
M cmd/plugins/juju-metadata/imagemetadata.go View 4 chunks +7 lines, -6 lines 0 comments Download
M cmd/plugins/juju-metadata/signmetadata.go View 3 chunks +6 lines, -6 lines 0 comments Download
M cmd/plugins/juju-metadata/toolsmetadata.go View 2 chunks +2 lines, -1 line 0 comments Download
M cmd/plugins/juju-metadata/validateimagemetadata.go View 6 chunks +8 lines, -7 lines 0 comments Download
M cmd/plugins/juju-metadata/validatetoolsmetadata.go View 5 chunks +6 lines, -5 lines 0 comments Download
M cmd/plugins/juju-restore/restore.go View 17 chunks +34 lines, -33 lines 0 comments Download
M cmd/supercommand.go View 4 chunks +4 lines, -3 lines 0 comments Download
M cmd/supercommand_test.go View 2 chunks +2 lines, -1 line 0 comments Download
M cmd/util_test.go View 1 chunk +1 line, -1 line 0 comments Download
M constraints/constraints.go View 13 chunks +16 lines, -16 lines 0 comments Download
M container/factory/factory.go View 2 chunks +2 lines, -2 lines 0 comments Download
M container/kvm/instance.go View 2 chunks +5 lines, -3 lines 0 comments Download
M container/kvm/kvm.go View 3 chunks +3 lines, -2 lines 0 comments Download
M container/kvm/libvirt.go View 2 chunks +3 lines, -1 line 0 comments Download
M container/kvm/mock/mock-kvm.go View 3 chunks +4 lines, -2 lines 0 comments Download
M container/lxc/instance.go View 2 chunks +4 lines, -3 lines 0 comments Download
M container/lxc/mock/mock-lxc.go View 5 chunks +7 lines, -6 lines 0 comments Download
M downloader/downloader.go View 3 chunks +3 lines, -3 lines 0 comments Download
M environs/authenticationprovider.go View 2 chunks +3 lines, -3 lines 0 comments Download
M environs/boilerplate_config.go View 4 chunks +6 lines, -4 lines 0 comments Download
M environs/bootstrap/bootstrap.go View 6 chunks +8 lines, -9 lines 0 comments Download
M environs/bootstrap/bootstrap_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M environs/bootstrap/state.go View 4 chunks +5 lines, -5 lines 0 comments Download
M environs/bootstrap/synctools.go View 3 chunks +4 lines, -4 lines 0 comments Download
M environs/cloudinit.go View 4 chunks +6 lines, -8 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 5 chunks +29 lines, -29 lines 0 comments Download
M environs/config.go View 8 chunks +10 lines, -9 lines 0 comments Download
M environs/config/authkeys.go View 2 chunks +3 lines, -2 lines 0 comments Download
M environs/config/config.go View 11 chunks +17 lines, -17 lines 0 comments Download
M environs/configstore/disk.go View 5 chunks +7 lines, -8 lines 0 comments Download
M environs/configstore/interface.go View 1 chunk +1 line, -1 line 0 comments Download
M environs/configstore/mem.go View 2 chunks +3 lines, -2 lines 0 comments Download
M environs/emptystorage.go View 2 chunks +3 lines, -2 lines 0 comments Download
M environs/errors.go View 1 chunk +1 line, -1 line 0 comments Download
M environs/filestorage/filestorage.go View 3 chunks +3 lines, -2 lines 0 comments Download
M environs/httpstorage/backend.go View 4 chunks +4 lines, -3 lines 0 comments Download
M environs/httpstorage/storage.go View 7 chunks +7 lines, -6 lines 0 comments Download
M environs/imagemetadata/upload.go View 2 chunks +2 lines, -2 lines 0 comments Download
M environs/imagemetadata/urls.go View 2 chunks +3 lines, -1 line 0 comments Download
M environs/imagemetadata/validation.go View 3 chunks +7 lines, -7 lines 0 comments Download
M environs/instances/image.go View 3 chunks +4 lines, -2 lines 0 comments Download
M environs/instances/instancetype.go View 2 chunks +3 lines, -2 lines 0 comments Download
M environs/jujutest/livetests.go View 3 chunks +4 lines, -3 lines 0 comments Download
M environs/manual/bootstrap.go View 3 chunks +4 lines, -3 lines 0 comments Download
M environs/manual/init.go View 5 chunks +6 lines, -4 lines 0 comments Download
M environs/manual/provisioner.go View 3 chunks +3 lines, -3 lines 0 comments Download
M environs/open.go View 8 chunks +15 lines, -16 lines 0 comments Download
M environs/simplestreams/datasource.go View 2 chunks +3 lines, -1 line 0 comments Download
M environs/simplestreams/decode.go View 2 chunks +2 lines, -2 lines 0 comments Download
M environs/simplestreams/simplestreams.go View 11 chunks +20 lines, -19 lines 0 comments Download
M environs/sshstorage/linewrapwriter_test.go View 1 chunk +1 line, -1 line 0 comments Download
M environs/sshstorage/storage.go View 9 chunks +14 lines, -13 lines 0 comments Download
M environs/storage/storage.go View 2 chunks +3 lines, -2 lines 0 comments Download
M environs/storage/storage_test.go View 2 chunks +3 lines, -3 lines 0 comments Download
M environs/sync/sync.go View 2 chunks +2 lines, -2 lines 0 comments Download
M environs/testing/storage.go View 2 chunks +3 lines, -3 lines 0 comments Download
M environs/tools/boilerplate.go View 3 chunks +4 lines, -3 lines 0 comments Download
M environs/tools/build.go View 4 chunks +6 lines, -4 lines 0 comments Download
M environs/tools/simplestreams.go View 2 chunks +3 lines, -1 line 0 comments Download
M environs/tools/storage.go View 1 chunk +2 lines, -1 line 0 comments Download
M environs/tools/tools.go View 4 chunks +5 lines, -6 lines 0 comments Download
M environs/tools/urls.go View 2 chunks +3 lines, -1 line 0 comments Download
M environs/tools/validation.go View 3 chunks +4 lines, -4 lines 0 comments Download
M errors/errors_test.go View 3 chunks +4 lines, -4 lines 0 comments Download
M instance/address_test.go View 1 chunk +1 line, -1 line 0 comments Download
M instance/container.go View 2 chunks +2 lines, -4 lines 0 comments Download
M instance/instance.go View 10 chunks +14 lines, -13 lines 0 comments Download
M juju/api.go View 6 chunks +7 lines, -7 lines 0 comments Download
M juju/apiconn_test.go View 4 chunks +5 lines, -5 lines 0 comments Download
M juju/conn.go View 8 chunks +17 lines, -17 lines 0 comments Download
M juju/deploy.go View 5 chunks +8 lines, -8 lines 0 comments Download
M juju/osenv/vars_windows_test.go View 1 chunk +1 line, -1 line 0 comments Download
M juju/testing/instance.go View 2 chunks +2 lines, -3 lines 0 comments Download
M log/syslog/cmd.go View 2 chunks +5 lines, -4 lines 0 comments Download
M names/tag.go View 3 chunks +5 lines, -4 lines 0 comments Download
M provider/azure/config.go View 2 chunks +4 lines, -3 lines 0 comments Download
M provider/azure/customdata.go View 2 chunks +3 lines, -2 lines 0 comments Download
M provider/azure/environ.go View 8 chunks +13 lines, -12 lines 0 comments Download
M provider/azure/instance.go View 3 chunks +4 lines, -3 lines 0 comments Download
M provider/azure/instancetype.go View 3 chunks +3 lines, -3 lines 0 comments Download
M provider/common/bootstrap.go View 9 chunks +12 lines, -11 lines 0 comments Download
M provider/common/bootstrap_test.go View 7 chunks +8 lines, -8 lines 0 comments Download
M provider/common/destroy_test.go View 5 chunks +5 lines, -5 lines 0 comments Download
M provider/common/polling.go View 2 chunks +3 lines, -2 lines 0 comments Download
M provider/common/polling_test.go View 1 chunk +1 line, -1 line 0 comments Download
M provider/common/state.go View 3 chunks +4 lines, -3 lines 0 comments Download
M provider/dummy/environs.go View 16 chunks +23 lines, -23 lines 0 comments Download
M provider/ec2/config.go View 2 chunks +6 lines, -7 lines 0 comments Download
M provider/ec2/ec2.go View 19 chunks +23 lines, -22 lines 0 comments Download
M provider/ec2/image.go View 2 chunks +2 lines, -2 lines 0 comments Download
M provider/ec2/storage.go View 3 chunks +4 lines, -4 lines 0 comments Download
M provider/error.go View 1 chunk +1 line, -1 line 0 comments Download
M provider/joyent/config.go View 4 chunks +5 lines, -3 lines 0 comments Download
M provider/joyent/provider.go View 3 chunks +5 lines, -7 lines 0 comments Download
M provider/local/environ.go View 5 chunks +7 lines, -5 lines 0 comments Download
M provider/local/environprovider.go View 6 chunks +11 lines, -10 lines 0 comments Download
M provider/local/environprovider_test.go View 1 chunk +1 line, -1 line 0 comments Download
M provider/local/prereqs.go View 3 chunks +6 lines, -5 lines 0 comments Download
M provider/maas/config.go View 3 chunks +4 lines, -4 lines 0 comments Download
M provider/maas/environ.go View 5 chunks +5 lines, -4 lines 0 comments Download
M provider/maas/environprovider.go View 1 chunk +1 line, -1 line 0 comments Download
M provider/maas/storage.go View 6 chunks +6 lines, -6 lines 0 comments Download
M provider/manual/environ.go View 3 chunks +5 lines, -5 lines 0 comments Download
M provider/manual/environ_test.go View 1 chunk +1 line, -1 line 0 comments Download
M provider/manual/provider.go View 4 chunks +6 lines, -5 lines 0 comments Download
M provider/manual/provider_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M provider/openstack/config.go View 3 chunks +5 lines, -4 lines 0 comments Download
M provider/openstack/export_test.go View 3 chunks +3 lines, -3 lines 0 comments Download
M provider/openstack/local_test.go View 3 chunks +4 lines, -3 lines 0 comments Download
M provider/openstack/provider.go View 21 chunks +22 lines, -22 lines 0 comments Download
M provider/openstack/storage.go View 3 chunks +4 lines, -4 lines 0 comments Download
M replicaset/replicaset.go View 3 chunks +3 lines, -3 lines 0 comments Download
M replicaset/replicaset_test.go View 3 chunks +4 lines, -3 lines 0 comments Download
M rpc/client.go View 1 chunk +2 lines, -1 line 0 comments Download
M rpc/jsoncodec/codec.go View 2 chunks +2 lines, -1 line 0 comments Download
M rpc/jsoncodec/codec_test.go View 1 chunk +1 line, -1 line 0 comments Download
M rpc/rpc_test.go View 8 chunks +12 lines, -11 lines 0 comments Download
M rpc/rpcreflect/type.go View 1 chunk +2 lines, -1 line 0 comments Download
M rpc/server.go View 2 chunks +2 lines, -2 lines 0 comments Download
M schema/schema.go View 3 chunks +4 lines, -2 lines 0 comments Download
M state/addmachine.go View 18 chunks +25 lines, -24 lines 0 comments Download
M state/address.go View 3 chunks +4 lines, -2 lines 0 comments Download
M state/annotator.go View 3 chunks +3 lines, -3 lines 0 comments Download
M state/api/agent/state.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/api/client.go View 5 chunks +13 lines, -11 lines 0 comments Download
M state/api/common/life.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/api/deployer/machine.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/api/firewaller/machine.go View 3 chunks +3 lines, -3 lines 0 comments Download
M state/api/firewaller/service.go View 3 chunks +4 lines, -2 lines 0 comments Download
M state/api/firewaller/unit.go View 4 chunks +5 lines, -3 lines 0 comments Download
M state/api/keyupdater/authorisedkeys.go View 3 chunks +3 lines, -3 lines 0 comments Download
M state/api/logger/logger.go View 3 chunks +3 lines, -3 lines 0 comments Download
M state/api/machiner/machine.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/api/params/params.go View 5 chunks +6 lines, -4 lines 0 comments Download
M state/api/provisioner/machine.go View 9 chunks +10 lines, -9 lines 0 comments Download
M state/api/provisioner/provisioner.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/api/uniter/charm.go View 3 chunks +4 lines, -3 lines 0 comments Download
M state/api/uniter/relation.go View 2 chunks +3 lines, -1 line 0 comments Download
M state/api/uniter/relationunit.go View 4 chunks +4 lines, -4 lines 0 comments Download
M state/api/uniter/service.go View 5 chunks +6 lines, -4 lines 0 comments Download
M state/api/uniter/unit.go View 11 chunks +12 lines, -11 lines 0 comments Download
M state/api/uniter/uniter.go View 4 chunks +4 lines, -4 lines 0 comments Download
M state/api/upgrader/upgrader.go View 5 chunks +5 lines, -5 lines 0 comments Download
M state/apiserver/admin.go View 2 chunks +3 lines, -2 lines 0 comments Download
M state/apiserver/charms.go View 15 chunks +41 lines, -41 lines 0 comments Download
M state/apiserver/client/client.go View 15 chunks +29 lines, -29 lines 0 comments Download
M state/apiserver/client/destroy.go View 2 chunks +3 lines, -2 lines 0 comments Download
M state/apiserver/client/run.go View 2 chunks +3 lines, -1 line 0 comments Download
M state/apiserver/client/tools.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/apiserver/common/common_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/apiserver/common/ensuredead_test.go View 4 chunks +4 lines, -5 lines 0 comments Download
M state/apiserver/common/environmachineswatcher.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/apiserver/common/environmachineswatcher_test.go View 2 chunks +2 lines, -3 lines 0 comments Download
M state/apiserver/common/environwatcher_test.go View 4 chunks +4 lines, -5 lines 0 comments Download
M state/apiserver/common/errors.go View 2 chunks +10 lines, -9 lines 0 comments Download
M state/apiserver/common/errors_test.go View 2 chunks +2 lines, -3 lines 0 comments Download
M state/apiserver/common/instanceidgetter_test.go View 2 chunks +2 lines, -1 line 0 comments Download
M state/apiserver/common/life_test.go View 3 chunks +3 lines, -4 lines 0 comments Download
M state/apiserver/common/password_test.go View 5 chunks +5 lines, -4 lines 0 comments Download
M state/apiserver/common/remove.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/apiserver/common/remove_test.go View 4 chunks +5 lines, -6 lines 0 comments Download
M state/apiserver/common/setstatus_test.go View 4 chunks +4 lines, -5 lines 0 comments Download
M state/apiserver/common/tools.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/apiserver/common/tools_test.go View 3 chunks +3 lines, -4 lines 0 comments Download
M state/apiserver/common/unitswatcher_test.go View 3 chunks +3 lines, -4 lines 0 comments Download
M state/apiserver/common/watch_test.go View 3 chunks +3 lines, -4 lines 0 comments Download
M state/apiserver/deployer/deployer.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/apiserver/keymanager/keymanager.go View 11 chunks +13 lines, -13 lines 0 comments Download
M state/apiserver/root.go View 1 chunk +1 line, -1 line 0 comments Download
M state/apiserver/uniter/uniter.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/apiserver/upgrader/upgrader.go View 1 chunk +1 line, -1 line 0 comments Download
M state/apiserver/utils.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/cleanup.go View 6 chunks +7 lines, -8 lines 0 comments Download
M state/constraints.go View 2 chunks +2 lines, -3 lines 0 comments Download
M state/endpoint.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/machine.go View 22 chunks +24 lines, -23 lines 0 comments Download
M state/megawatcher.go View 7 chunks +8 lines, -8 lines 0 comments Download
M state/megawatcher_internal_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/minimumunits.go View 1 chunk +1 line, -2 lines 0 comments Download
M state/multiwatcher/multiwatcher.go View 1 chunk +1 line, -1 line 0 comments Download
M state/multiwatcher/multiwatcher_internal_test.go View 3 chunks +3 lines, -3 lines 0 comments Download
M state/open.go View 6 chunks +8 lines, -8 lines 0 comments Download
M state/policy.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/prechecker_test.go View 2 chunks +3 lines, -4 lines 0 comments Download
M state/presence/presence.go View 7 chunks +7 lines, -6 lines 0 comments Download
M state/relation.go View 6 chunks +6 lines, -6 lines 0 comments Download
M state/relationunit.go View 7 chunks +8 lines, -8 lines 0 comments Download
M state/sequence.go View 2 chunks +2 lines, -3 lines 0 comments Download
M state/service.go View 14 chunks +19 lines, -19 lines 0 comments Download
M state/settings.go View 5 chunks +5 lines, -4 lines 0 comments Download
M state/state.go View 38 chunks +57 lines, -56 lines 0 comments Download
M state/state_test.go View 2 chunks +2 lines, -1 line 0 comments Download
M state/statecmd/destroymachines.go View 3 chunks +4 lines, -3 lines 0 comments Download
M state/statecmd/machineconfig.go View 3 chunks +3 lines, -3 lines 0 comments Download
M state/statecmd/status.go View 4 chunks +6 lines, -4 lines 0 comments Download
M state/status.go View 3 chunks +6 lines, -7 lines 0 comments Download
M state/unit.go View 31 chunks +36 lines, -36 lines 0 comments Download
M state/user.go View 4 chunks +4 lines, -4 lines 0 comments Download
M state/watcher.go View 3 chunks +3 lines, -2 lines 0 comments Download
M state/watcher/helpers_test.go View 1 chunk +1 line, -2 lines 0 comments Download
M state/watcher/watcher.go View 5 chunks +5 lines, -4 lines 0 comments Download
M store/branch.go View 5 chunks +6 lines, -5 lines 0 comments Download
M store/config.go View 2 chunks +4 lines, -4 lines 0 comments Download
M store/lpad.go View 3 chunks +3 lines, -2 lines 0 comments Download
M store/store.go View 8 chunks +8 lines, -8 lines 0 comments Download
M store/store_test.go View 2 chunks +2 lines, -1 line 0 comments Download
M testing/cert.go View 2 chunks +4 lines, -3 lines 0 comments Download
M testing/charm.go View 6 chunks +7 lines, -6 lines 0 comments Download
M testing/checkers/bool_test.go View 1 chunk +1 line, -1 line 0 comments Download
M testing/checkers/deepequal.go View 2 chunks +3 lines, -1 line 0 comments Download
M testing/locking.go View 1 chunk +2 lines, -1 line 0 comments Download
M testing/locking_test.go View 3 chunks +3 lines, -5 lines 0 comments Download
M testing/mgo.go View 3 chunks +4 lines, -3 lines 0 comments Download
M testing/targz.go View 2 chunks +3 lines, -1 line 0 comments Download
M testing/testbase/patch_test.go View 1 chunk +1 line, -1 line 0 comments Download
M tools/list.go View 2 chunks +3 lines, -3 lines 0 comments Download
M upgrades/systemsshkey.go View 3 chunks +5 lines, -4 lines 0 comments Download
M upgrades/upgrade_test.go View 1 chunk +1 line, -1 line 0 comments Download
M upstart/upstart.go View 4 chunks +5 lines, -4 lines 0 comments Download
M utils/apt.go View 3 chunks +3 lines, -2 lines 0 comments Download
M utils/apt_test.go View 3 chunks +5 lines, -6 lines 0 comments Download
M utils/fslock/fslock.go View 3 chunks +2 lines, -2 lines 0 comments Download
M utils/network.go View 2 chunks +2 lines, -2 lines 0 comments Download
M utils/parallel/try.go View 1 chunk +1 line, -1 line 0 comments Download
M utils/parallel/try_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M utils/password.go View 2 chunks +3 lines, -2 lines 0 comments Download
M utils/ssh/authorisedkeys.go View 9 chunks +10 lines, -9 lines 0 comments Download
M utils/ssh/clientkeys.go View 3 chunks +2 lines, -2 lines 0 comments Download
M utils/ssh/fingerprint.go View 2 chunks +3 lines, -1 line 0 comments Download
M utils/ssh/generate.go View 2 chunks +2 lines, -1 line 0 comments Download
M utils/ssh/run.go View 3 chunks +4 lines, -3 lines 0 comments Download
M utils/ssh/ssh.go View 1 chunk +2 lines, -1 line 0 comments Download
M utils/ssh/ssh_gocrypto.go View 6 chunks +7 lines, -6 lines 0 comments Download
M utils/ssh/ssh_gocrypto_test.go View 1 chunk +1 line, -1 line 0 comments Download
M utils/ssh/ssh_openssh.go View 3 chunks +4 lines, -2 lines 0 comments Download
M utils/tailer/tailer_test.go View 3 chunks +5 lines, -5 lines 0 comments Download
M utils/trivial.go View 2 chunks +1 line, -1 line 0 comments Download
M utils/uuid.go View 2 chunks +3 lines, -1 line 0 comments Download
M version/version.go View 4 chunks +6 lines, -5 lines 0 comments Download
M worker/deployer/deployer.go View 2 chunks +2 lines, -3 lines 0 comments Download
M worker/deployer/simple.go View 3 chunks +4 lines, -3 lines 0 comments Download
M worker/environ.go View 1 chunk +1 line, -2 lines 0 comments Download
M worker/firewaller/firewaller.go View 6 chunks +6 lines, -6 lines 0 comments Download
M worker/instancepoller/machine_test.go View 3 chunks +3 lines, -4 lines 0 comments Download
M worker/instancepoller/updater.go View 3 chunks +3 lines, -3 lines 0 comments Download
M worker/instancepoller/updater_test.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/machiner/machiner.go View 3 chunks +4 lines, -4 lines 0 comments Download
M worker/notifyworker_test.go View 8 chunks +8 lines, -7 lines 0 comments Download
M worker/peergrouper/desired.go View 3 chunks +3 lines, -3 lines 0 comments Download
M worker/peergrouper/desired_test.go View 2 chunks +3 lines, -1 line 0 comments Download
M worker/peergrouper/mock_test.go View 5 chunks +9 lines, -8 lines 0 comments Download
M worker/peergrouper/worker.go View 6 chunks +7 lines, -6 lines 0 comments Download
M worker/peergrouper/worker_test.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/provisioner/container_initialisation.go View 3 chunks +5 lines, -3 lines 0 comments Download
M worker/provisioner/provisioner_task.go View 5 chunks +6 lines, -5 lines 0 comments Download
M worker/rsyslog/worker.go View 4 chunks +7 lines, -7 lines 0 comments Download
M worker/runner.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/runner_test.go View 7 chunks +8 lines, -8 lines 0 comments Download
M worker/simpleworker_test.go View 1 chunk +1 line, -2 lines 0 comments Download
M worker/stringsworker_test.go View 8 chunks +8 lines, -8 lines 0 comments Download
M worker/uniter/charm/charm.go View 3 chunks +4 lines, -3 lines 0 comments Download
M worker/uniter/charm/deployer.go View 3 chunks +4 lines, -2 lines 0 comments Download
M worker/uniter/charm/git.go View 5 chunks +5 lines, -4 lines 0 comments Download
M worker/uniter/context.go View 3 chunks +3 lines, -2 lines 0 comments Download
M worker/uniter/debug/server.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/uniter/hook/hook.go View 2 chunks +3 lines, -3 lines 0 comments Download
M worker/uniter/jujuc/config-get.go View 2 chunks +2 lines, -3 lines 0 comments Download
M worker/uniter/jujuc/context.go View 2 chunks +4 lines, -3 lines 0 comments Download
M worker/uniter/jujuc/juju-log.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/uniter/jujuc/owner-get.go View 3 chunks +3 lines, -5 lines 0 comments Download
M worker/uniter/jujuc/ports.go View 4 chunks +4 lines, -4 lines 0 comments Download
M worker/uniter/jujuc/relation-get.go View 4 chunks +4 lines, -3 lines 0 comments Download
M worker/uniter/jujuc/relation-ids.go View 2 chunks +2 lines, -1 line 0 comments Download
M worker/uniter/jujuc/relation-list.go View 3 chunks +3 lines, -4 lines 0 comments Download
M worker/uniter/jujuc/relation-set.go View 3 chunks +4 lines, -3 lines 0 comments Download
M worker/uniter/jujuc/server.go View 2 chunks +2 lines, -1 line 0 comments Download
M worker/uniter/jujuc/server_test.go View 3 chunks +3 lines, -4 lines 0 comments Download
M worker/uniter/jujuc/unit-get.go View 3 chunks +3 lines, -5 lines 0 comments Download
M worker/uniter/jujuc/util_test.go View 2 chunks +2 lines, -1 line 0 comments Download
M worker/uniter/modes.go View 6 chunks +6 lines, -6 lines 0 comments Download
M worker/uniter/relation/relation.go View 3 chunks +11 lines, -10 lines 0 comments Download
M worker/uniter/state.go View 3 chunks +9 lines, -9 lines 0 comments Download
M worker/uniter/tools.go View 2 chunks +3 lines, -2 lines 0 comments Download
M worker/uniter/uniter.go View 7 chunks +6 lines, -6 lines 0 comments Download
M worker/upgrader/upgrader.go View 2 chunks +3 lines, -3 lines 0 comments Download
M worker/upgrader/upgrader_test.go View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5
rog
Please take a look.
10 years, 1 month ago (2014-03-03 14:43:17 UTC) #1
rog
Please take a look.
10 years, 1 month ago (2014-03-03 14:46:36 UTC) #2
natefinch
nlgtm - the path to errgo should be github.com/juju/errgo ... the subdirectory serves no purpose, ...
10 years, 1 month ago (2014-03-03 15:59:52 UTC) #3
natefinch
On 2014/03/03 15:59:52, nate.finch wrote: > nlgtm - the path to errgo should be github.com/juju/errgo ...
10 years, 1 month ago (2014-03-03 16:02:05 UTC) #4
natefinch
10 years, 1 month ago (2014-03-03 16:02:05 UTC) #5
On 2014/03/03 15:59:52, nate.finch wrote:
> nlgtm - the path to errgo should be github.com/juju/errgo ... the subdirectory
> serves no purpose, except to confuse people into thinking there might be code
in
> the parent directory.
> 
> Also, the package should be imported as errgo everywhere. This prevents any
> possibility of confusion with the standard library errors package, and means
> that if you see errors.New somewhere... you know it's wrong, as opposed to not
> knowing until you go look at the imports to determine which errors.new is
being
> called.
> 
> It's basically never a good idea to write a package with the same name as a
> standard library package, especially in this case when there's a perfectly
> sensible alternative that only makes the code more clear.
> 
> Otherwise, the code looks fine.

arg, the above should be a not lgtm ... I guess the abbreviation doesn't work
correctly :/
Sign in to reply to this message.

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