Open TomDeVito opened 6 years ago
Hello @TomDeVito ,
Thanks for filing this. I must admit i never considered this case as .go files are often not in the root when following the recommended go structure, however I can totally see many situations where it would be the case.
Ill run some tests but I suspect removing the explicit check for root packages would fix this, I think I originally put the check for packages in . as an optimisation or that it was causing all packages to be marked as tainted.
Ill have a play.
Also apologies for the late reply @TomDeVito
No worries, thanks for responding. I'm following Ben Johnson's Standard Package Layout which has domain structs at the root level. Yea, I tried removing it, but didn't find it working properly until I was able to discover what package was contained in the cwd
I had the same issue and @TomDeVito's patch fixed it.
Hey, thanks for making this tool, I ran into a little snag:
If I have the following structure:
and I make changes to
project.go
,app1
andapp2
are not considered to be tainted.project.go
is in the CWD, but seems to be ignored hereWhen I change the code to the following:
I seem to get my desired outcome. I'm not sure if this the best way to handle this or not and was wondering what your thoughts are about this matter.
Thanks,