Masterminds / glide

Package Management for Golang
https://glide.sh
Other
8.15k stars 541 forks source link

Can't find executable after 'glide get ginkgo' #647

Open janckerchen opened 7 years ago

janckerchen commented 7 years ago

my env

$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/opt/dev/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.7.3/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.7.3/libexec/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/8g/k56fj_l17g32bg3fmjqqhgdr0000gp/T/go-build029850921=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang"
CGO_ENABLED="1"

get ginkgo

$ glide init
$ glide get github.com/onsi/ginkgo/ginkgo
[INFO]  Preparing to install 1 package.
[INFO]  Attempting to get package github.com/onsi/ginkgo/ginkgo
[INFO]  --> Gathering release information for github.com/onsi/ginkgo
[INFO]  The package github.com/onsi/ginkgo appears to have Semantic Version releases (http://semver.org).
[INFO]  The latest release is v1.2.0. You are currently not using a release. Would you like
[INFO]  to use this release? Yes (Y) or No (N)
Y
[INFO]  The package github.com/onsi/ginkgo appears to use semantic versions (http://semver.org).
[INFO]  Would you like to track the latest minor or patch releases (major.minor.patch)?
[INFO]  Tracking minor version releases would use '>= 1.2.0, < 2.0.0' ('^1.2.0'). Tracking patch version
[INFO]  releases would use '>= 1.2.0, < 1.3.0' ('~1.2.0'). For more information on Glide versions
[INFO]  and ranges see https://glide.sh/docs/versions
[INFO]  Minor (M), Patch (P), or Skip Ranges (S)?
M
[INFO]  --> Adding github.com/onsi/ginkgo to your configuration with the version ^1.2.0
[INFO]  Downloading dependencies. Please wait...
[INFO]  --> Fetching updates for github.com/onsi/ginkgo.
[INFO]  Resolving imports
[INFO]  Downloading dependencies. Please wait...
[INFO]  --> Detected semantic version. Setting version for github.com/onsi/ginkgo to v1.2.0.
[INFO]  Exporting resolved dependencies...
[INFO]  --> Exporting github.com/onsi/ginkgo
[INFO]  Replacing existing vendor dependencies

run command ginkgo

$ ginkgo
-bash: ginkgo: command not found

ginkgo package downloaded in vendor successfully, but where is executable ginkgo? there is no bin directory in $GOPATH(/opt/dev/go)

 $ ll /opt/dev/go
total 16
drwxr-xr-x   6 jason  admin   204B 10 22 22:34 ./
drwxr-xr-x  10 jason  admin   340B 10 22 22:10 ../
-rw-r--r--   1 jason  admin   249B 10 22 22:34 glide.lock
-rw-r--r--   1 jason  admin    97B 10 22 22:34 glide.yaml
drwxr-xr-x   2 jason  admin    68B 10 22 22:33 src/
drwxr-xr-x   3 jason  staff   102B 10 22 22:34 vendor/

my glide.yaml

package: .
import:
- package: github.com/onsi/ginkgo
  version: ^1.2.0
  subpackages:
  - ginkgo

switch to 'go get', install successfully

$ go  get github.com/onsi/ginkgo/ginkgo
$ ginkgo
Found no test suites
For usage instructions:
    ginkgo help
 $ ll bin/
total 18680
drwxr-xr-x  3 jason  admin   102B 10 22 22:41 ./
drwxr-xr-x  8 jason  admin   272B 10 22 22:41 ../
-rwxr-xr-x  1 jason  staff   9.1M 10 22 22:41 ginkgo*

which bin directory glide install package to?

ashb commented 7 years ago

Glide does not install binaries (currently) -- It's worth adding this as another use case in #418.