module path typo
jlagermann opened this issue · 4 comments
When trying to use this Go library, I get the following error.
$ go get github.com/CrowdStrike/gofalcon/falcon
go: downloading github.com/CrowdStrike/gofalcon v0.2.11
go get: github.com/CrowdStrike/gofalcon@v0.2.11: parsing go.mod:
module declares its path as: github.com/crowdstrike/gofalcon
but was required as: github.com/CrowdStrike/gofalcon
You are getting this error because of running:
$ go get github.com/CrowdStrike/gofalcon/falcon
There is no falcon
go module.
Both the following commands should work for you:
$ go get github.com/CrowdStrike/gofalcon
or
$ go get github.com/crowdstrike/gofalcon
Also, pulling down specific paths vs the module isn't usually the best
The instructions for $ go get github.com/CrowdStrike/gofalcon/falcon
came from the README.md
https://github.com/CrowdStrike/gofalcon#installation
I did get it working with go get github.com/crowdstrike/gofalcon/falcon@v0.2.11
I just had to change CrowdStrike
to crowdstrike
in the install URL.
@jlagermann Thanks for getting in touch. You are right, the CamelCase in the installation instructions has to be avoided. Correct refer to gofalcon is to use lowercase path.
I have fixed the installation instructions.