Last active
May 1, 2019 01:19
-
-
Save spiegel-im-spiegel/5a72239254a5d042d937 to your computer and use it in GitHub Desktop.
そろそろ真面目に Golang 開発環境について考える — GOPATH 汚染問題 ref: http://qiita.com/spiegel-im-spiegel/items/73ebc684b5807277b7e2
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
SET GOPATH=C:\golib;C:\workspace\project1;C:\workspace\project1;... |
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
C:>SET GOPATH=C:\workspace\gb | |
C:>go get -v github.com/constabulary/gb/... | |
github.com/constabulary/gb (download) | |
github.com/constabulary/gb | |
github.com/constabulary/gb/cmd | |
github.com/constabulary/gb/vendor | |
github.com/constabulary/gb/cmd/gb | |
github.com/constabulary/gb/cmd/gb-vendor | |
C:>cd C:\workspace\gb | |
C:\workspace\gb>tree /f | |
C:. | |
├─bin | |
│ gb-vendor.exe | |
│ gb.exe | |
│ | |
├─pkg | |
│ └─windows_amd64 | |
│ └─github.com | |
│ └─constabulary | |
│ └─gb | |
│ | |
└─src | |
└─github.com | |
└─constabulary | |
└─gb | |
├─cmd | |
│ ├─gb | |
│ └─gb-vendor | |
├─testdata | |
└─vendor | |
└─_testdata |
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
C:> cd C:\workspace\gcli | |
C:\workspace\gcli>git clone https://github.com/tcnksm/gcli.git src\github.com/tcnksm/gcli | |
Cloning into 'src\github.com/tcnksm/gcli'... | |
remote: Counting objects: 766, done. | |
remote: Total 766 (delta 0), reused 0 (delta 0), pack-reused 766Receiving objects: 90% (690/766), 2.11 MiB | 828.00 KiB/s | |
Receiving objects: 100% (766/766), 2.50 MiB | 828.00 KiB/s, done. | |
Resolving deltas: 100% (415/415), done. | |
Checking connectivity... done. | |
C:\workspace\gcli>gb vendor fetch github.com/mitchellh/cli | |
fetching recursive dependency golang.org/x/crypto/ssh/terminal | |
C:\workspace\gcli>gb vendor fetch github.com/olekukonko/tablewriter | |
C:\workspace\gcli>gb vendor fetch github.com/tcnksm/go-gitconfig | |
C:\workspace\gcli>gb vendor fetch github.com/tcnksm/go-latest | |
fetching recursive dependency github.com/google/go-github/github | |
fetching recursive dependency github.com/google/go-querystring/query | |
fetching recursive dependency github.com/hashicorp/go-version | |
fetching recursive dependency golang.org/x/net/html | |
C:\workspace\gcli>pushd src\github.com\tcnksm\gcli\skeleton | |
C:\workspace\gcli\src\github.com\tcnksm\gcli\skeleton>go-bindata -pkg="skeleton" resource/... | |
C:\workspace\gcli\src\github.com\tcnksm\gcli\skeleton>popd | |
C:\workspace\gcli>gb build | |
github.com/tcnksm/gcli/helper | |
github.com/tcnksm/go-gitconfig | |
github.com/google/go-querystring/query | |
golang.org/x/crypto/ssh/terminal | |
github.com/hashicorp/go-version | |
golang.org/x/net/html/atom | |
github.com/olekukonko/tablewriter | |
github.com/google/go-github/github | |
github.com/tcnksm/gcli/skeleton | |
github.com/mitchellh/cli | |
golang.org/x/net/html | |
github.com/tcnksm/go-latest | |
github.com/tcnksm/gcli/command | |
github.com/tcnksm/gcli | |
C:\workspace\gcli>bin\gcli.exe version | |
[0;0mgcli version v0.2.0[0m | |
[0;31m | |
Your versin of gcli is out of date! The latest version is 0.2.1.[0m | |
C:\workspace\gcli> | |
C:. | |
├─bin | |
│ gcli.exe | |
│ | |
├─pkg | |
│ └─windows | |
│ └─amd64 | |
│ ├─github.com | |
│ │ │ ├─go-github | |
│ │ │ └─go-querystring | |
│ │ ├─hashicorp | |
│ │ ├─mitchellh | |
│ │ ├─olekukonko | |
│ │ └─tcnksm | |
│ │ └─gcli | |
│ └─golang.org | |
│ └─x | |
│ ├─crypto | |
│ │ └─ssh | |
│ └─net | |
│ └─html | |
├─src | |
│ └─github.com | |
│ └─tcnksm | |
│ └─gcli | |
│ ├─command | |
│ ├─helper | |
│ ├─skeleton | |
│ │ └─resource | |
│ └─tests | |
└─vendor | |
│ manifest | |
│ | |
└─src | |
├─github.com | |
│ │ ├─go-github | |
│ │ │ └─github | |
│ │ └─go-querystring | |
│ │ └─query | |
│ ├─hashicorp | |
│ │ └─go-version | |
│ ├─mitchellh | |
│ │ └─cli | |
│ ├─olekukonko | |
│ │ └─tablewriter | |
│ │ └─csv2table | |
│ └─tcnksm | |
│ ├─go-gitconfig | |
│ └─go-latest | |
│ └─latest | |
└─golang.org | |
└─x | |
├─crypto | |
│ └─ssh | |
│ └─terminal | |
└─net | |
└─html | |
├─atom | |
├─charset | |
└─testdata |
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
C:>go get -v golang.org/x/tools/cmd/godoc | |
golang.org/x/tools/blog/atom | |
golang.org/x/tools/present | |
golang.org/x/tools/go/ast/astutil | |
golang.org/x/tools/go/types/typeutil | |
golang.org/x/tools/go/buildutil | |
golang.org/x/tools/container/intsets | |
golang.org/x/tools/blog | |
golang.org/x/tools/go/ssa | |
golang.org/x/tools/go/loader | |
golang.org/x/tools/godoc/vfs | |
golang.org/x/tools/godoc/redirect | |
golang.org/x/tools/godoc/static | |
golang.org/x/tools/go/callgraph | |
golang.org/x/tools/go/ssa/ssautil | |
golang.org/x/tools/godoc/util | |
golang.org/x/tools/godoc/vfs/httpfs | |
golang.org/x/tools/godoc/vfs/gatefs | |
golang.org/x/tools/go/pointer | |
golang.org/x/tools/godoc/vfs/mapfs | |
golang.org/x/tools/godoc/vfs/zipfs | |
golang.org/x/tools/playground | |
golang.org/x/tools/godoc/analysis | |
golang.org/x/tools/godoc | |
golang.org/x/tools/cmd/godoc | |
C:>go get -v golang.org/x/tools/cmd/vet | |
Fetching https://golang.org/x/tools/cmd/vet?go-get=1 | |
Parsing meta tags from https://golang.org/x/tools/cmd/vet?go-get=1 (status code 200) | |
get "golang.org/x/tools/cmd/vet": found meta tag main.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/cmd/vet?go-get=1 | |
get "golang.org/x/tools/cmd/vet": verifying non-authoritative meta tag | |
Fetching https://golang.org/x/tools?go-get=1 | |
Parsing meta tags from https://golang.org/x/tools?go-get=1 (status code 200) | |
golang.org/x/tools (download) | |
golang.org/x/tools/go/exact | |
golang.org/x/tools/cmd/vet/whitelist | |
golang.org/x/tools/go/types | |
golang.org/x/tools/go/gcimporter | |
golang.org/x/tools/cmd/vet | |
C:>go get -v github.com/golang/lint/golint | |
github.com/golang/lint (download) | |
github.com/golang/lint | |
github.com/golang/lint/golint | |
C:>go get -v github.com/jteeuwen/go-bindata/... | |
github.com/jteeuwen/go-bindata (download) | |
github.com/jteeuwen/go-bindata | |
github.com/jteeuwen/go-bindata/go-bindata |
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
{ | |
"version": 0, | |
"dependencies": [ | |
{ | |
"importpath": "github.com/google/go-github/github", | |
"repository": "https://github.com/google/go-github", | |
"revision": "7277108aa3e8823e0e028f6c74aea2f4ce4a1b5a", | |
"branch": "master", | |
"path": "/github" | |
}, | |
{ | |
"importpath": "github.com/google/go-querystring/query", | |
"repository": "https://github.com/google/go-querystring", | |
"revision": "547ef5ac979778feb2f760cdb5f4eae1a2207b86", | |
"branch": "master", | |
"path": "/query" | |
}, | |
{ | |
"importpath": "github.com/hashicorp/go-version", | |
"repository": "https://github.com/hashicorp/go-version", | |
"revision": "999359b6b7a041ce16e695d51e92145b83f01087", | |
"branch": "master" | |
}, | |
{ | |
"importpath": "github.com/mitchellh/cli", | |
"repository": "https://github.com/mitchellh/cli", | |
"revision": "8102d0ed5ea2709ade1243798785888175f6e415", | |
"branch": "master" | |
}, | |
{ | |
"importpath": "github.com/olekukonko/tablewriter", | |
"repository": "https://github.com/olekukonko/tablewriter", | |
"revision": "b9346ac189c55dd419f85c7ad2cd56f810bf19d6", | |
"branch": "master" | |
}, | |
{ | |
"importpath": "github.com/tcnksm/go-gitconfig", | |
"repository": "https://github.com/tcnksm/go-gitconfig", | |
"revision": "6411ba19847f20afe47f603328d97aaeca6def6f", | |
"branch": "master" | |
}, | |
{ | |
"importpath": "github.com/tcnksm/go-latest", | |
"repository": "https://github.com/tcnksm/go-latest", | |
"revision": "ef81df8e23895f6e86f9bdfea0576b9c17b9f1f4", | |
"branch": "master" | |
}, | |
{ | |
"importpath": "golang.org/x/crypto/ssh/terminal", | |
"repository": "https://go.googlesource.com/crypto", | |
"revision": "81bf7719a6b7ce9b665598222362b50122dfc13b", | |
"branch": "master", | |
"path": "/ssh/terminal" | |
}, | |
{ | |
"importpath": "golang.org/x/net/html", | |
"repository": "https://go.googlesource.com/net", | |
"revision": "7654728e381988afd88e58cabfd6363a5ea91810", | |
"branch": "master", | |
"path": "/html" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment