Last active
April 25, 2019 16:47
-
-
Save myitcv/f7270ab81ab45aa286f496264f034b56 to your computer and use it in GitHub Desktop.
github.com/sirupsen/logrus pain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ GO111MODULE=off go get github.com/myitcv/gobin | |
$ gobin github.com/rogpeppe/gohack | |
Installed github.com/rogpeppe/[email protected] to /home/gopher/gopath/bin/gohack | |
$ gobin github.com/rogpeppe/gomodmerge | |
Installed github.com/rogpeppe/[email protected] to /home/gopher/gopath/bin/gomodmerge | |
$ cd $(mktemp -d) | |
$ go mod init example.com/hello | |
$ cat <<EOD >main.go | |
package main | |
import ( | |
_ "github.com/docker/docker/daemon/config" | |
_ "github.com/Sirupsen/logrus" | |
) | |
func main() {} | |
EOD | |
$ go get -m github.com/docker/[email protected] | |
$ gohack get -vcs github.com/docker/docker | |
creating github.com/docker/[email protected] | |
github.com/docker/docker => /home/gopher/gohack/github.com/docker/docker | |
$ docker=$(go list -m -f "{{.Dir}}" github.com/docker/docker) | |
$ pushd $docker | |
~/gohack/github.com/docker/docker /tmp/tmp.sanBBw7xUy | |
$ rm go.mod | |
$ go mod init | |
$ go mod tidy | |
$ popd | |
/tmp/tmp.sanBBw7xUy | |
$ gohack undo github.com/docker/docker | |
dropped github.com/docker/docker | |
$ gomodmerge $docker/go.mod | |
cloud.google.com/go v0.0.0-20161209102608-9d965e63e8cc | |
github.com/Azure/go-ansiterm v0.0.0-20160425224613-388960b65524 | |
... | |
$ go mod tidy | |
$ go build | |
$ go list -m all | |
example.com/hello | |
github.com/Azure/go-ansiterm v0.0.0-20160425224613-388960b65524 | |
github.com/Microsoft/go-winio v0.0.0-20170317155720-7c7d6b461cb1 | |
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 | |
github.com/Sirupsen/logrus v0.11.0 | |
github.com/armon/go-radix v0.0.0-20150105235045-e39d623f12e8 | |
github.com/coreos/etcd v0.0.0-20170112061757-824277cb3a57 | |
github.com/davecgh/go-spew v1.1.1 | |
github.com/docker/distribution v0.0.0-20170213194809-b38e5838b7b2 | |
github.com/docker/docker v0.0.0-20170504205632-89658bed64c2 | |
github.com/docker/go-connections v0.0.0-20170331145122-e15c02316c12 | |
github.com/docker/go-units v0.0.0-20170127094116-9e638d38cf69 | |
github.com/docker/libkv v0.0.0-20161109010621-1d8431073ae0 | |
github.com/docker/libtrust v0.0.0-20150526203908-9cbd2a1374f4 | |
github.com/go-check/check v0.0.0-20180628173108-788fd7840127 | |
github.com/golang/protobuf v1.2.0 | |
github.com/gorilla/context v0.0.0-20160226214623-1ea25387ff6f | |
github.com/gorilla/mux v0.0.0-20160317213430-0eeaf8392f5b | |
github.com/hashicorp/consul v0.5.2 | |
github.com/hashicorp/go-msgpack v0.0.0-20140221154404-71c2886f5a67 | |
github.com/hashicorp/golang-lru v0.0.0-20160207214719-a0d98a5f2880 | |
github.com/hashicorp/hcl v1.0.0 | |
github.com/imdario/mergo v0.0.0-20151231081848-bc0f15622cd2 | |
github.com/kr/pretty v0.1.0 | |
github.com/kr/pty v1.1.1 | |
github.com/kr/text v0.1.0 | |
github.com/opencontainers/go-digest v0.0.0-20170106003457-a6d0ee40d420 | |
github.com/pkg/errors v0.0.0-20161002052512-839d9e913e06 | |
github.com/pmezard/go-difflib v1.0.0 | |
github.com/samuel/go-zookeeper v0.0.0-20150415181332-d0e0d8e11f31 | |
github.com/spf13/pflag v1.0.2 | |
github.com/stretchr/testify v1.2.2 | |
github.com/ugorji/go v0.0.0-20151028022000-f1f1a805ed36 | |
github.com/vmihailenco/msgpack v4.0.1+incompatible | |
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd | |
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f | |
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e | |
golang.org/x/text v0.3.0 | |
google.golang.org/appengine v1.2.0 | |
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 | |
gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0 | |
labix.org/v2/mgo v0.0.0-20140701140051-000000000287 | |
launchpad.net/gocheck v0.0.0-20140225173054-000000000087 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment