AlienVault-OTX / OTX-Go-SDK

A working client implementation for AlienVault OTX API written in Golang!
https://otx.alienvault.com
Apache License 2.0
55 stars 23 forks source link

Cannot download via go get or gb vendor fetch #6

Open woanware opened 8 years ago

woanware commented 8 years ago

Because the code is nested under the src directory, you cannot use either of the following commands to download the library:

go get github.com/AlienVault-Labs/OTX-Go-SDK
gb vendor fetch github.com/AlienVault-Labs/OTX-Go-SDK

The code should be in the root of the project, the examples folder can remain the same

woanware commented 8 years ago
go get github.com/infoassure/OTX-Go-SDK                       
can't load package: package github.com/AlienVault-Labs/OTX-Go-SDK: no buildable Go source files in /data/prj/source/src/github.com/AlienVault-Labs/OTX-Go-SDK
woanware commented 8 years ago

Originally forked, but decided to make a lot of changes. Use code as you want:

https://github.com/infoassure/otx-go-client

bsmartt13 commented 8 years ago

@woanware thanks so much! Would you mind making a PR so I can merge these fixes?

woanware commented 8 years ago

Well they aren't really fixes, it has been completely rewritten, so it will be hard to merge as every file has changed, along with the location?

nesv commented 7 years ago

@woanware For what it's worth, $ go get github.com/AlienVault-Labs/OTX-Go-SDK does not work, but $ go get github.com/AlienVault-Labs/OTX-Go-SDK/src/otxapi does work.

woanware commented 7 years ago

@nesv ah OK. Would have to work out where it works with gb as I mainly use that for dependencies. Though I wrote my own API client in the end. https://github.com/infoassure/otx-go-client

nesv commented 7 years ago

@woanware I use gb as well, and gb vendor fetch github.com/AlienVault-Labs/OTX-Go-SDK/src/otxapi seems to work.

I wish I had seen this issue earlier, as I currently have a pending pull request. :laughing:

woanware commented 7 years ago

@nesv Just ran my project that is using my OTX client and something has changed, so I used your refactor branch, and have updated my code to use it. The conversion took about 30 minutes and works perfectly. I am glad you didn't see mine first, as mine was a rush job to get my project done, so yours should definitely be accepted via the pull request!