Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
janckerchen opened this issue Oct 22, 2016 · 1 comment
Open

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

janckerchen opened this issue Oct 22, 2016 · 1 comment

Comments

@janckerchen
Copy link

janckerchen commented Oct 22, 2016

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?

@janckerchen janckerchen changed the title Can't find executable after get ginkgo Can't find executable after 'glide get ginkgo' Oct 22, 2016
@ashb
Copy link

ashb commented Nov 7, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants