VirusTotal / vt-cli

VirusTotal Command Line Interface
https://virustotal.github.io/vt-cli/
Apache License 2.0
818 stars 71 forks source link

Make issue (Debian) #82

Closed maorhz closed 1 year ago

maorhz commented 1 year ago

go1.21.1 linux/amd64 is installed (manually installed it).

I see the following error message after downloading vt-cli and running "make install"

Make install go install -ldflags "-X github.com/VirusTotal/vt-cli/cmd.Version=" github.com/VirusTotal/vt-cli/vt cannot find package "github.com/VirusTotal/vt-cli/vt" in any of: /usr/local/go/src/github.com/VirusTotal/vt-cli/vt (from $GOROOT) /home/maorhz/Documents/Code/GO/src/github.com/VirusTotal/vt-cli/vt (from $GOPATH) make: *** [Makefile:13: install] Error 1

Any idea where this is going wrong?

mgmacias95 commented 1 year ago

Hello @maorhz,

Is there any reason why you are trying to manually compile the project? I think it's more convenient to use one of the already compiled binaries available at our releases page: https://github.com/VirusTotal/vt-cli/releases/tag/0.14.0

I hope this helps.

maorhz commented 1 year ago

Hello @mgmacias95,

Reason why i install vt-cli manually while compiling the project is because that's the official installation procedure (link below) and it used to work fine until i removed and reinstalled golang on my linux environment. https://github.com/VirusTotal/vt-cli#installing-the-tool

Thanks

mgmacias95 commented 1 year ago

Hello @maorhz,

That guide mentions the option of using pre-compiled binaries too:

For installing the tool you can download one the pre-compiled binaries we offer for Windows, Linux and Mac OS X, or alternatively you can compile it yourself from source code.

I'm aware it looks confusing and we have to rethink how this guide is written.

Thank you for your feedback.

Regards, Marta

mgmacias95 commented 1 year ago

Made these changes to fix this problem: https://github.com/VirusTotal/vt-cli/pull/83

maorhz commented 1 year ago

Update: Here is what solve the issue for me.

I probably set this go environment variable to tackle a different issue. GO111MODULE='off'

To revert the change i used the following command. go env -u GO111MODULE (variable should now look like this GO111MODULE='')

Now when running "make install" from the vt-client folder (cloned repo) worked and i got it compiled successfully.

mgmacias95 commented 1 year ago

Thank you for sharing! I'm closing this issue since your problem is now fixed.