From 62cbeb661d87a14c016b903af26df05b51f59dd1 Mon Sep 17 00:00:00 2001 From: yxxhero Date: Wed, 19 Oct 2022 17:50:56 +0800 Subject: [PATCH] fix helmfile diff error in window platform Signed-off-by: yxxhero --- pkg/state/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/state/util.go b/pkg/state/util.go index b1b692ae..095f75a3 100644 --- a/pkg/state/util.go +++ b/pkg/state/util.go @@ -26,7 +26,7 @@ func isLocalChart(chart string) bool { return chart == "" || filepath.IsAbs(chart) || - !strings.Contains(chart, fmt.Sprintf("%c", os.PathSeparator)) || + !strings.Contains(chart, "/") || (len(strings.Split(chart, "/")) != 2 && len(strings.Split(chart, "/")) != 3) }