Home:ALL Converter>go install not creating binary of a package while go get is able to

go install not creating binary of a package while go get is able to

Ask Time:2019-03-26T16:23:52         Author:iam thadiyan

Json Formatter

I am on go version go1.11.2 linux/amd64. When the package godog is installed using go get github.com/DATA-DOG/godog/, godog executable is created inside $GOPATH/bin/. All fine till now.

I am creating an application myApp that resides at $GOPATH/src/ in which under the folder vendor, godog package is added. When I try to create a binary out of vendor-ed package, an archive file is created inside $GOPATH/pkg/linux_amd64/myApp/vendor/github.com/DATA-DOG/ as godog.a

How can I create a binary in this scenario? I do not want to do go get again just for the binary.

Author:iam thadiyan,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/55352664/go-install-not-creating-binary-of-a-package-while-go-get-is-able-to
yy