go-geiger
go-geiger copied to clipboard
go-geiger does not detect unsafe usages with absolute paths in WSL2
When I use absolute paths for a go project, go-geiger won't detect it. The package path is also different, the first one has an underscore prepended to the path.
antoniozhu@WS0075-21:/mnt/c/Users/antonio.zhu/Documents/repos/praktikum/unsafe-toolkit$ go-geiger ./dummy_project/
WITH DEPENDENCIES LOCAL PACKAGE PACKAGE PATH
--------------------+---------------+-----------------------------------------------------------------------------------
1 1 _/mnt/c/Users/antonio.zhu/Documents/repos/praktikum/unsafe-toolkit/dummy_project
Package _/mnt/c/Users/antonio.zhu/Documents/repos/praktikum/unsafe-toolkit/dummy_project including imports effectively makes up 1 packages
1 of those contain unsafe usages
Couting occurances of unsafe.Pointer
Packages in green have no unsafe usages
Packages in red contain unsafe usages
Packages in white import packages with unsafe usages
antoniozhu@WS0075-21:/mnt/c/Users/antonio.zhu/Documents/repos/praktikum/unsafe-toolkit$ go-geiger $PWD/dummy_project/
WITH DEPENDENCIES LOCAL PACKAGE PACKAGE PATH
--------------------+---------------+----------------------------------------------------------------------------------
0 0 /mnt/c/Users/antonio.zhu/Documents/repos/praktikum/unsafe-toolkit/dummy_project
Package /mnt/c/Users/antonio.zhu/Documents/repos/praktikum/unsafe-toolkit/dummy_project including imports effectively makes up 1 packages
1 of those do not contain any unsafe usages
Couting occurances of unsafe.Pointer
Packages in green have no unsafe usages
Packages in red contain unsafe usages
Packages in white import packages with unsafe usages
I'm using the following software: go version go1.13.8 linux/amd64 Ubuntu 20.04 on WSL2
Hey @antoniozh, thanks for reporting this! I will have a look into it.