Fix issue #329: Windows indefinite loop (#331)
Fix issue #329: Windows indefinite loop (#331)

* Fix issue #329

Problem: Indefinite loop in function findRoot

Root cause: Root path only consider linux "/"

Solution: Detect os at runtime and decide root path. Windows "C:\\", others "/"

* Fix issue #329

Problem: Indefinite loop in function findRoot

Root cause: Root path only consider linux "/"

Solution: Detect os at runtime and decide root path. Windows "C:\\", others "/"

* Fix issue #329

Problem: Indefinite loop in function findRoot

Root cause: Root path only consider linux "/"

Solution: Detect os at runtime and decide root path. Windows "C:\\", others "/"

* Fix issue #329

Problem: Indefinite loop in function findRoot

Root cause: Root path only consider linux "/"

Solution: Detect os at runtime and decide root path. Windows "C:\\", others "/"

* Fix issue #329

Problem: Indefinite loop in function findRoot

Root cause: Root path only consider linux "/"

Solution: Detect os at runtime and decide root path. Windows "C:\\", others "/"

* Update pkg/jsonnet/jpath/jpath.go

Co-authored-by: c0feec0der <>
Co-authored-by: sh0rez <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@shorez.de>
grafana/tanka