From e1681788dcf66fc026f57d261cbb2c4084057ce8 Mon Sep 17 00:00:00 2001 From: Jamie Wilkinson Date: Sun, 14 Jan 2024 17:01:20 +1100 Subject: [PATCH] Fix path discovery to work on Windows. --- internal/mtail/exec_integration_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/mtail/exec_integration_test.go b/internal/mtail/exec_integration_test.go index 3944f74d..48c5d0be 100644 --- a/internal/mtail/exec_integration_test.go +++ b/internal/mtail/exec_integration_test.go @@ -8,6 +8,7 @@ import ( "errors" "log" "os/exec" + "path/filepath" "testing" "time" ) @@ -15,7 +16,7 @@ import ( var mtailPath string func init() { - path, err := exec.LookPath("../../mtail") + path, err := exec.LookPath(filepath.Join("..", "..", "mtail")) if errors.Is(err, exec.ErrDot) { err = nil }