mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 18:09:55 +00:00
Fix: Correct runtime.Caller usage and handle error in CurrentDir() - Changed runtime.Caller(1) to runtime.Caller(0) to correctly fetch the current file's directory. - Added proper check for the 'ok' value returned by runtime.Caller. - Improved robustness by panicking if runtime information retrieval fails. Signed-off-by: rash1411 <107741585+rash1411@users.noreply.github.com>