diff --git a/Gopkg.lock b/Gopkg.lock index 7df6bf1..1e1f155 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -1,6 +1,22 @@ # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. +[[projects]] + digest = "1:e4b30804a381d7603b8a344009987c1ba351c26043501b23b8c7ce21f0b67474" + name = "github.com/BurntSushi/toml" + packages = ["."] + pruneopts = "" + revision = "3012a1dbe2e4bd1391d42b32f0577cb7bbc7f005" + version = "v0.3.1" + +[[projects]] + branch = "master" + digest = "1:bf241ce6eec44d9ebca17e22af43f13c25f55267b308ce8b29b9820c0d6d1d25" + name = "github.com/OpenPeeDeeP/depguard" + packages = ["."] + pruneopts = "" + revision = "1f388ab2d81096755d25043aa729e2fb889f3dae" + [[projects]] branch = "master" digest = "1:8cf2cf1ab10480b5e0df950dac1517aaabde05d055d9d955652997ae4b9ecbbf" @@ -33,6 +49,14 @@ revision = "5b77d2a35fb0ede96d138fc9a99f5c9b6aef11b4" version = "v1.7.0" +[[projects]] + digest = "1:eb53021a8aa3f599d29c7102e65026242bdedce998a54837dc67f14b6a97c5fd" + name = "github.com/fsnotify/fsnotify" + packages = ["."] + pruneopts = "" + revision = "c2828203cd70a50dcccfb2761f8b1f8ceef9a8e9" + version = "v1.4.7" + [[projects]] branch = "master" digest = "1:5d0a2385edf4ba44f3b7b76bc0436ceb8f62bf55aa5d540a9eb9ec6c58d86809" @@ -61,6 +85,28 @@ revision = "de7e78efa4a71b3f36c7154989c529dbdf9ae623" version = "v1.1.0" +[[projects]] + digest = "1:9d3f086381a257229b34fcd5690c3e5cadcb5f365cb35757536f3c51ccbb9049" + name = "github.com/go-critic/go-critic" + packages = [ + "checkers", + "checkers/internal/lintutil", + ] + pruneopts = "" + revision = "d7b3038bc7a1c35a1d02fdd7cf4094f0f1a12001" + version = "v0.3.4" + +[[projects]] + digest = "1:50907242db0cb4c5d982ae213b995e9176b917edb269b645097af3289d9a15da" + name = "github.com/go-lintpack/lintpack" + packages = [ + ".", + "astwalk", + ] + pruneopts = "" + revision = "80adc0715ac409128d0b7212719896ad8d3444b7" + version = "v0.5.2" + [[projects]] digest = "1:6a4a01d58b227c4b6b11111b9f172ec5c17682b82724e58e6daf3f19f4faccd8" name = "github.com/go-logfmt/logfmt" @@ -69,6 +115,95 @@ revision = "390ab7935ee28ec6b286364bba9b4dd6410cb3d5" version = "v0.3.0" +[[projects]] + digest = "1:1119997895278e1b27810308d8f802590e713bf0263b13be304ca9e086bd22a7" + name = "github.com/go-toolsmith/astcast" + packages = ["."] + pruneopts = "" + revision = "a6cb19f07b66b859a53f3f2be6e4c3bba892db7e" + version = "v1.0.0" + +[[projects]] + digest = "1:bcff57ad40d16a950986eb45dae40ed142d51c702e41fad2177518071bcc3d40" + name = "github.com/go-toolsmith/astcopy" + packages = ["."] + pruneopts = "" + revision = "245af3020944a15e09072c8ad3883c1451d1fdef" + version = "v1.0.0" + +[[projects]] + digest = "1:f6629a0ef3b819e34d4634c7540edf0cb392054ade814c4a9587ab6a23685def" + name = "github.com/go-toolsmith/astequal" + packages = ["."] + pruneopts = "" + revision = "dcb477bfacd6e00a13c6d63bfc73db28dd343160" + version = "v1.0.0" + +[[projects]] + digest = "1:05a2d85ca9e1164efa7cfb988d44bff221382658e567d958a78734bb9cccb758" + name = "github.com/go-toolsmith/astfmt" + packages = ["."] + pruneopts = "" + revision = "0d74c731079884bda287cf8df9ce7b92e688af8c" + version = "v1.0.0" + +[[projects]] + digest = "1:a6f3d4784ec69928a0a54521dd2536e6bacc73edf988edefc2820230d7be7703" + name = "github.com/go-toolsmith/astp" + packages = ["."] + pruneopts = "" + revision = "6373270dee65bfb0479f2acd16d4c8e9d5db13f8" + version = "v1.0.0" + +[[projects]] + digest = "1:9ba1aaf89cddc1cfe5d9a4a83d16ff8778369eaa358278a3fa2ef97847ebdb35" + name = "github.com/go-toolsmith/strparse" + packages = ["."] + pruneopts = "" + revision = "830b6daa1241714c12a9b9a4a56849fe2f93aedc" + version = "v1.0.0" + +[[projects]] + digest = "1:b827014e6963ac236f3698ce5ca1c85ad3ccfbf722186eab207836e1d7b9d615" + name = "github.com/go-toolsmith/typep" + packages = ["."] + pruneopts = "" + revision = "cab1745ffd84a567b524317c7f90e96755b18fcf" + version = "v1.0.0" + +[[projects]] + digest = "1:9ab1b1c637d7c8f49e39d8538a650d7eb2137b076790cff69d160823b505964c" + name = "github.com/gobwas/glob" + packages = [ + ".", + "compiler", + "match", + "syntax", + "syntax/ast", + "syntax/lexer", + "util/runes", + "util/strings", + ] + pruneopts = "" + revision = "5ccd90ef52e1e632236f7326478d4faa74f99438" + version = "v0.2.3" + +[[projects]] + digest = "1:fd53b471edb4c28c7d297f617f4da0d33402755f58d6301e7ca1197ef0a90937" + name = "github.com/gogo/protobuf" + packages = ["proto"] + pruneopts = "" + revision = "ba06b47c162d49f2af050fb4c75bcbc86a159d5c" + version = "v1.2.1" + +[[projects]] + digest = "1:530233672f656641b365f8efb38ed9fba80e420baff2ce87633813ab3755ed6d" + name = "github.com/golang/mock" + packages = ["gomock"] + pruneopts = "" + revision = "51421b967af1f557f93a59e0057aaf15ca02e29c" + version = "v1.2.0" + [[projects]] digest = "1:3dd078fda7500c341bc26cfbc6c6a34614f295a2457149fc1045cab767cbcf18" name = "github.com/golang/protobuf" @@ -89,6 +224,213 @@ revision = "aa810b61a9c79d51363740d207bb46cf8e620ed5" version = "v1.2.0" +[[projects]] + branch = "master" + digest = "1:f6a3ed95affdd867195dec281bf1d328dddb37590463eba1f7b39b44a9829e3d" + name = "github.com/golangci/check" + packages = [ + "cmd/structcheck", + "cmd/varcheck", + ] + pruneopts = "" + revision = "cfe4005ccda277a820149d44d6ededc400cc99a2" + +[[projects]] + branch = "master" + digest = "1:262000a2de14b1d0a802acb611e7ee69208b7e3e08f7d0e62226bb324f12e375" + name = "github.com/golangci/dupl" + packages = [ + ".", + "job", + "printer", + "suffixtree", + "syntax", + "syntax/golang", + ] + pruneopts = "" + revision = "3e9179ac440a0386ac7cc9a085fc44397c6b9bbc" + +[[projects]] + branch = "master" + digest = "1:2298a8780ede449cb58108de23925ac2a14cca8ac151cfae45ea5992054d6cf2" + name = "github.com/golangci/errcheck" + packages = [ + "golangci", + "internal/errcheck", + ] + pruneopts = "" + revision = "ef45e06d44b6e018d817c16c762d448990adc5e0" + +[[projects]] + branch = "master" + digest = "1:9b38ad496c9dabd1c820609c481f59c6c9597926c6125810af3d7a71bf2d649c" + name = "github.com/golangci/go-misc" + packages = ["deadcode"] + pruneopts = "" + revision = "927a3d87b613e9f6f0fb7ef8bb8de8b83c30a5a2" + +[[projects]] + branch = "master" + digest = "1:e4bbd53b867030ca8b2e0f6d7338cec2373baf14109858312daa51a144f4a091" + name = "github.com/golangci/go-tools" + packages = [ + "arg", + "callgraph", + "callgraph/static", + "config", + "deprecated", + "functions", + "internal/sharedcheck", + "lint", + "lint/lintdsl", + "lint/lintutil", + "lint/lintutil/format", + "simple", + "ssa", + "ssa/ssautil", + "ssautil", + "staticcheck", + "staticcheck/vrp", + "stylecheck", + "unused", + "version", + ] + pruneopts = "" + revision = "35a9f45a5db090b0227d692d823151104cd695fa" + +[[projects]] + branch = "master" + digest = "1:bc3387ddcbdacf135af0a16b9e9ec6ac7bf5a1f822f679d8d29c2d97cfcce205" + name = "github.com/golangci/goconst" + packages = ["."] + pruneopts = "" + revision = "041c5f2b40f3dd334a4a6ee6a3f84ca3fc70680a" + +[[projects]] + branch = "master" + digest = "1:c5c9e52a4aaca585c1ce9c79f5ea31d74d03da39dfccda0b140f93d6a1be17b7" + name = "github.com/golangci/gocyclo" + packages = ["pkg/gocyclo"] + pruneopts = "" + revision = "0a533e8fa43d6605069e94f455bf9d79d4b8ea8c" + +[[projects]] + branch = "master" + digest = "1:edccfa947bd237dcd1bceef56d1670c22930831ca196ff04f0e2c4a8483bf97b" + name = "github.com/golangci/gofmt" + packages = [ + "gofmt", + "goimports", + ] + pruneopts = "" + revision = "0b8337e80d98f7eec18e4504a4557b34423fd039" + +[[projects]] + digest = "1:0071a728673f03bd75b65863a37d4b1c5bb06ffc4a4416f1a8b6b90f36b2c5e3" + name = "github.com/golangci/golangci-lint" + packages = [ + "cmd/golangci-lint", + "pkg/commands", + "pkg/config", + "pkg/exitcodes", + "pkg/fsutils", + "pkg/golinters", + "pkg/goutil", + "pkg/lint", + "pkg/lint/astcache", + "pkg/lint/linter", + "pkg/lint/lintersdb", + "pkg/logutils", + "pkg/packages", + "pkg/printers", + "pkg/report", + "pkg/result", + "pkg/result/processors", + "pkg/timeutils", + ] + pruneopts = "" + revision = "901cf25e20f86b7e9dc6f73eaba5afbd0cbdc257" + version = "v1.15.0" + +[[projects]] + branch = "master" + digest = "1:30c45dd735f55c7dbd0ea6040e3ccc35f867532b8e1919016c0565510392417a" + name = "github.com/golangci/gosec" + packages = [ + ".", + "rules", + ] + pruneopts = "" + revision = "8afd9cbb6cfb34a3b4d4d5711bafdc6640ae892f" + +[[projects]] + branch = "master" + digest = "1:081d9ed8ba13ebbd4bd3e1f17cd703f77268416074588c38ce985d654b1fc0e1" + name = "github.com/golangci/govet" + packages = [ + ".", + "lib/cfg", + "lib/whitelist", + ] + pruneopts = "" + revision = "44ddbe260190d79165f4150b828650780405d801" + +[[projects]] + branch = "master" + digest = "1:7da7fde58cf7cf5e19f6a1c77eb153945b28cf03bab227e0d831897b7070b546" + name = "github.com/golangci/ineffassign" + packages = ["."] + pruneopts = "" + revision = "2ee8f2867dde308c46d401d6d30f6c644094b167" + +[[projects]] + branch = "master" + digest = "1:8e50794fcb5f229576cd7eda5627a6c2f20341079f0c571077a7ab807c518da9" + name = "github.com/golangci/lint-1" + packages = ["."] + pruneopts = "" + revision = "d2cdd8c0821928c61cb0903441f8b35457a98a61" + +[[projects]] + branch = "master" + digest = "1:8665edfb3c5371fbac9820d127fa0d9aed813cc2349a27a7d16064dd89fed146" + name = "github.com/golangci/maligned" + packages = ["."] + pruneopts = "" + revision = "b1d89398deca2fd3f8578e5a9551e819bd01ca5f" + +[[projects]] + digest = "1:dbf28ceee27335219701dd4c6639c767eee31e2abb61485cdb1044587a04c077" + name = "github.com/golangci/misspell" + packages = ["."] + pruneopts = "" + revision = "b90dc15cfd220ecf8bbc9043ecb928cef381f011" + version = "v0.3.4" + +[[projects]] + branch = "master" + digest = "1:045c2735b360cbebf398a0e9312aeafebf08fd38f0d51cb2aa0f9420364c3cd1" + name = "github.com/golangci/prealloc" + packages = ["."] + pruneopts = "" + revision = "215b22d4de21190b80ce05e7d8466677c1aa3223" + +[[projects]] + branch = "master" + digest = "1:c23cf3c7078c3ba927492557a40c1ee1755734d4fff0e7fbe6d2f092604dae6d" + name = "github.com/golangci/revgrep" + packages = ["."] + pruneopts = "" + revision = "276a5c0a103935ee65af49afc254a65335bf1fcf" + +[[projects]] + branch = "master" + digest = "1:c553e7c7483f2d6db1e84a27a18df144ed4041792d7556916369f86ccf5409fe" + name = "github.com/golangci/unconvert" + packages = ["."] + pruneopts = "" + revision = "28b1c447d1f4a810737ee6ab40ea6c1d0ceae4ad" + [[projects]] digest = "1:ad92aa49f34cbc3546063c7eb2cabb55ee2278b72842eda80e2a20a8a06a8d73" name = "github.com/google/uuid" @@ -97,6 +439,25 @@ revision = "0cd6bf5da1e1c83f8b45653022c74f71af0538a4" version = "v1.1.1" +[[projects]] + digest = "1:d14365c51dd1d34d5c79833ec91413bfbb166be978724f15701e17080dc06dec" + name = "github.com/hashicorp/hcl" + packages = [ + ".", + "hcl/ast", + "hcl/parser", + "hcl/printer", + "hcl/scanner", + "hcl/strconv", + "hcl/token", + "json/parser", + "json/scanner", + "json/token", + ] + pruneopts = "" + revision = "8cb6e5b959231cc1119e43259c4a608f9c51a241" + version = "v1.0.0" + [[projects]] branch = "master" digest = "1:cb09475f771b9167fb9333629f5d6a7161572602ea040f1094602b0dc8709878" @@ -105,6 +466,25 @@ pruneopts = "" revision = "db4671f3a9b8df855e993f7c94ec5ef1ffb0a23b" +[[projects]] + digest = "1:765270f95ea68ad2150f6143eb8b9c0c17b038a7e2255b46580674471af00e27" + name = "github.com/kisielk/gotool" + packages = [ + ".", + "internal/load", + ] + pruneopts = "" + revision = "80517062f582ea3340cd4baf70e86d539ae7d84d" + version = "v1.0.0" + +[[projects]] + digest = "1:0f51cee70b0d254dbc93c22666ea2abf211af81c1701a96d04e2284b408621db" + name = "github.com/konsorten/go-windows-terminal-sequences" + packages = ["."] + pruneopts = "" + revision = "f55edac94c9bbba5d6182a4be46d86a2c9b5b50e" + version = "v1.0.2" + [[projects]] branch = "master" digest = "1:1ed9eeebdf24aadfbca57eb50e6455bd1d2474525e0f0d4454de8c8e9bc7ee9a" @@ -137,6 +517,14 @@ revision = "345fbb3dbcdb252d9985ee899a84963c0fa24c82" version = "v1.0" +[[projects]] + digest = "1:961dc3b1d11f969370533390fdf203813162980c858e1dabe827b60940c909a5" + name = "github.com/magiconair/properties" + packages = ["."] + pruneopts = "" + revision = "c2353362d570a7bfa228149c62842019201cfb71" + version = "v1.8.0" + [[projects]] digest = "1:9ea83adf8e96d6304f394d40436f2eb44c1dc3250d223b74088cc253a6cd0a1c" name = "github.com/mattn/go-colorable" @@ -169,6 +557,22 @@ revision = "3247c84500bff8d9fb6d579d800f20b3e091582c" version = "v1.0.0" +[[projects]] + digest = "1:6dbb0eb72090871f2e58d1e37973fe3cb8c0f45f49459398d3fc740cb30e13bd" + name = "github.com/mitchellh/go-homedir" + packages = ["."] + pruneopts = "" + revision = "af06845cf3004701891bf4fdb884bfe4920b3727" + version = "v1.1.0" + +[[projects]] + digest = "1:bcc46a0fbd9e933087bef394871256b5c60269575bb661935874729c65bbbf60" + name = "github.com/mitchellh/mapstructure" + packages = ["."] + pruneopts = "" + revision = "3536a929edddb9a5b34bd6861dc4a9647cb459fe" + version = "v1.1.2" + [[projects]] digest = "1:4ff67dde814694496d7aa31be44b900f9717a10c8bc9136b13f49c8ef97f439a" name = "github.com/montanaflynn/stats" @@ -177,6 +581,24 @@ revision = "63fbb2597b7a13043b453a4b819945badb8f8926" version = "v0.5.0" +[[projects]] + digest = "1:9da71b9d17d6231f1486dc62d81af3f9d34535703ba9e7a60a902433c3091e3b" + name = "github.com/nbutton23/zxcvbn-go" + packages = [ + ".", + "adjacency", + "data", + "entropy", + "frequency", + "match", + "matching", + "scoring", + "utils/math", + ] + pruneopts = "" + revision = "eafdab6b0663b4b528c35975c8b0e78be6e25261" + version = "v0.1" + [[projects]] branch = "master" digest = "1:f60ff065b58bd53e641112b38bbda9d2684deb828393c7ffb89c69a1ee301d17" @@ -185,6 +607,14 @@ pruneopts = "" revision = "0fd16699aae1833640fca52a937944c6f3b1d58c" +[[projects]] + digest = "1:894aef961c056b6d85d12bac890bf60c44e99b46292888bfa66caf529f804457" + name = "github.com/pelletier/go-toml" + packages = ["."] + pruneopts = "" + revision = "c01d1270ff3e442a8a57cddc1c92dc1138598194" + version = "v1.2.0" + [[projects]] digest = "1:7365acd48986e205ccb8652cc746f09c8b7876030d53710ea6ef7d0bd0dcd7ca" name = "github.com/pkg/errors" @@ -269,6 +699,33 @@ revision = "1744e2970ca51c86172c8190fadad617561ed6e7" version = "v1.0.0" +[[projects]] + digest = "1:b73fe282e350b3ef2c71d8ff08e929e0b9670b1bb5b7fde1d3c1b4cd6e6dc8b1" + name = "github.com/sirupsen/logrus" + packages = ["."] + pruneopts = "" + revision = "dae0fa8d5b0c810a8ab733fbd5510c7cae84eca4" + version = "v1.4.0" + +[[projects]] + digest = "1:956f655c87b7255c6b1ae6c203ebb0af98cf2a13ef2507e34c9bf1c0332ac0f5" + name = "github.com/spf13/afero" + packages = [ + ".", + "mem", + ] + pruneopts = "" + revision = "588a75ec4f32903aa5e39a2619ba6a4631e28424" + version = "v1.2.2" + +[[projects]] + digest = "1:ae3493c780092be9d576a1f746ab967293ec165e8473425631f06658b6212afc" + name = "github.com/spf13/cast" + packages = ["."] + pruneopts = "" + revision = "8c9545af88b134710ab1cd196795e7f2388358d7" + version = "v1.3.0" + [[projects]] branch = "master" digest = "1:146327ce93be37e68bd3ff8541090d96da8cb3adc9e35d57570e9170a29f6bf6" @@ -277,6 +734,14 @@ pruneopts = "" revision = "b78744579491c1ceeaaa3b40205e56b0591b93a3" +[[projects]] + digest = "1:cc15ae4fbdb02ce31f3392361a70ac041f4f02e0485de8ffac92bd8033e3d26e" + name = "github.com/spf13/jwalterweatherman" + packages = ["."] + pruneopts = "" + revision = "94f6ae3ed3bceceafa716478c5fbf8d29ca601a1" + version = "v1.1.0" + [[projects]] digest = "1:261bc565833ef4f02121450d74eb88d5ae4bd74bfe5d0e862cddb8550ec35000" name = "github.com/spf13/pflag" @@ -285,6 +750,14 @@ revision = "e57e3eeb33f795204c1ca35f56c44f83227c6e66" version = "v1.0.0" +[[projects]] + digest = "1:90fe60ab6f827e308b0c8cc1e11dce8ff1e96a927c8b171271a3cb04dd517606" + name = "github.com/spf13/viper" + packages = ["."] + pruneopts = "" + revision = "9e56dacc08fbbf8c9ee2dbc717553c758ce42bc9" + version = "v1.3.2" + [[projects]] digest = "1:3926a4ec9a4ff1a072458451aa2d9b98acd059a45b38f7335d31e06c3d6a0159" name = "github.com/stretchr/testify" @@ -331,6 +804,14 @@ pruneopts = "" revision = "08227ad854131f7dfcdfb12579fb73dd8a38a03a" +[[projects]] + branch = "master" + digest = "1:36ef1d8645934b1744cc7d8726e00d3dd9d8d84c18617bf7367a3a6d532f3370" + name = "golang.org/x/crypto" + packages = ["ssh/terminal"] + pruneopts = "" + revision = "a5d413f7728c81fb97d96a2b722368945f651e78" + [[projects]] branch = "master" digest = "1:ea539c13b066dac72a940b62f37600a20ab8e88057397c78f3197c1a48475425" @@ -351,7 +832,10 @@ branch = "master" digest = "1:f358024b019f87eecaadcb098113a40852c94fe58ea670ef3c3e2d2c7bd93db1" name = "golang.org/x/sys" - packages = ["unix"] + packages = [ + "unix", + "windows", + ] pruneopts = "" revision = "4ed8d59d0b35e1e29334a206d1b3f38b1e5dfb31" @@ -375,6 +859,7 @@ "unicode/cldr", "unicode/norm", "unicode/rangetable", + "width", ] pruneopts = "" revision = "f21a4dfb5e38f5895301dc265a8def02365cc3d0" @@ -384,7 +869,24 @@ branch = "master" digest = "1:4cd780b2ee42c8eac9c02bfb6e6b52dcbaef770774458c8938f5cbfb73a7b6d3" name = "golang.org/x/tools" - packages = ["cmd/stringer"] + packages = [ + "cmd/goimports", + "cmd/stringer", + "go/ast/astutil", + "go/buildutil", + "go/gcexportdata", + "go/internal/cgo", + "go/internal/gcimporter", + "go/loader", + "go/packages", + "go/ssa", + "go/ssa/ssautil", + "go/types/typeutil", + "imports", + "internal/fastwalk", + "internal/gopathwalk", + "internal/semver", + ] pruneopts = "" revision = "d0ca3933b724e6be513276cc2edb34e10d667438" @@ -436,6 +938,54 @@ revision = "df014850f6dee74ba2fc94874043a9f3f75fbfd8" version = "v1.17.0" +[[projects]] + digest = "1:cedccf16b71e86db87a24f8d4c70b0a855872eb967cb906a66b95de56aefbd0d" + name = "gopkg.in/yaml.v2" + packages = ["."] + pruneopts = "" + revision = "51d6538a90f86fe93ac480b35f37b2be17fef232" + version = "v2.2.2" + +[[projects]] + branch = "master" + digest = "1:2a6012038cdeb9851f1a71497544820e17ff2772b3cf799d24a76208cb9843b8" + name = "mvdan.cc/interfacer" + packages = ["check"] + pruneopts = "" + revision = "c20040233aedb03da82d460eca6130fcd91c629a" + +[[projects]] + branch = "master" + digest = "1:68e12be99c0d3355e04eecba6bc302876268a134a0eecd75258d8fefe44a94ed" + name = "mvdan.cc/lint" + packages = ["."] + pruneopts = "" + revision = "adc824a0674b99099789b6188a058d485eaf61c0" + +[[projects]] + branch = "master" + digest = "1:4af0788cd865cab3c8276462de56bad858e178199415241c2420e13e95d8594c" + name = "mvdan.cc/unparam" + packages = ["check"] + pruneopts = "" + revision = "1b9ccfa71afe53433971717161c9666adfc4d8c5" + +[[projects]] + digest = "1:0778809e0f18d0c0c05105a5c1e583d2253c5fd66fbd2b79b00e5f6439402491" + name = "sourcegraph.com/sourcegraph/go-diff" + packages = ["diff"] + pruneopts = "" + revision = "c613306ac97fb4807862c088149199f0dab8685a" + version = "v0.5.0" + +[[projects]] + digest = "1:ffc8cfc88692d5daab7abac1d989e9f7fc09727e42a945702f8f2d6d67f0fd6c" + name = "sourcegraph.com/sqs/pbtypes" + packages = ["."] + pruneopts = "" + revision = "688c2c2cb411327a50aae0f89119af9f38b0fc03" + version = "v1.0.0" + [solve-meta] analyzer-name = "dep" analyzer-version = 1 @@ -446,6 +996,7 @@ "github.com/go-logfmt/logfmt", "github.com/golang/protobuf/proto", "github.com/golang/protobuf/protoc-gen-go", + "github.com/golangci/golangci-lint/cmd/golangci-lint", "github.com/google/uuid", "github.com/jinzhu/copier", "github.com/kr/pretty", @@ -465,6 +1016,7 @@ "github.com/zrepl/yaml-config", "golang.org/x/net/context", "golang.org/x/sys/unix", + "golang.org/x/tools/cmd/goimports", "golang.org/x/tools/cmd/stringer", "google.golang.org/grpc", "google.golang.org/grpc/codes", diff --git a/Gopkg.toml b/Gopkg.toml index 55c0a9b..578f14b 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -5,6 +5,8 @@ ignored = [ required = [ "golang.org/x/tools/cmd/stringer", "github.com/alvaroloes/enumer", + "github.com/golangci/golangci-lint/cmd/golangci-lint", + "golang.org/x/tools/cmd/goimports", ] [[constraint]] diff --git a/Makefile b/Makefile index 38e83a6..b017278 100644 --- a/Makefile +++ b/Makefile @@ -31,11 +31,9 @@ generate: #not part of the build, must do that manually go generate -x ./... format: - # FIXME build dependency goimports -srcdir . -local 'github.com/zrepl/zrepl' -w $(shell find . -type f -name '*.go' -not -path "./vendor/*" -not -name '*.pb.go' -not -name '*_enumer.go') lint: - # v1.15.0 at the time of writing FIXME build dependency golangci-lint run ./... build: diff --git a/lazy.sh b/lazy.sh index 9b0f246..f36d098 100755 --- a/lazy.sh +++ b/lazy.sh @@ -39,7 +39,9 @@ godep() { go build -o "$GOPATH/bin/stringer" ./vendor/golang.org/x/tools/cmd/stringer go build -o "$GOPATH/bin/protoc-gen-go" ./vendor/github.com/golang/protobuf/protoc-gen-go go build -o "$GOPATH/bin/enumer" ./vendor/github.com/alvaroloes/enumer - if ! type stringer || ! type protoc-gen-go || ! type enumer ; then + go build -o "$GOPATH/bin/goimports" ./vendor/golang.org/x/tools/cmd/goimports + go build -o "$GOPATH/bin/golangci-lint" ./vendor/github.com/golangci/golangci-lint/cmd/golangci-lint + if ! type stringer || ! type protoc-gen-go || ! type enumer || ! type goimports || ! type golangci-lint; then echo "Installed dependencies but can't find them in \$PATH, adjust it to contain \$GOPATH/bin" 1>&2 exit 1 fi