bpsizemore / gokart

A static analysis tool for securing Go code
Apache License 2.0
0 stars 0 forks source link

Fails to read some go files for unknown reason #1

Open bpsizemore opened 3 years ago

bpsizemore commented 3 years ago

https://github.com/tylerwince/godbg

root@DESKTOP-E8GQV20:~# gokart scan -r github.com/tylerwince/godbg
Using config found at /root/.gokart/analyzers.yml
Loading new racetrack: https://github.com/tylerwince/godbg
Enumerating objects: 72, done.
Total 72 (delta 0), reused 0 (delta 0), pack-reused 72

Revving engines VRMMM VRMMM
3...2...1...Go!
CRASH! GoKart didn't find any files to scan! Make sure the usage is correct to get GoKart back on track.
root@DESKTOP-E8GQV20:~/godbg# gokart scan
dbg.go       dbg_test.go  .git/        .gitignore   LICENSE      README.md    .travis.yml
root@DESKTOP-E8GQV20:~/godbg# gokart scan dbg.go
Using config found at /root/.gokart/analyzers.yml

Revving engines VRMMM VRMMM
3...2...1...Go!
CRASH! GoKart didn't find any files to scan! Make sure the usage is correct to get GoKart back on track.

need to investigate why it's failing here.

bpsizemore commented 3 years ago

I believe it's because there is no go.mod file that is valid in the dir. Gokart relies on builtin package loading functionality which relies on modules in the later versions of go.