From 3aa45e72e791795cde54831e91267eaae58324c2 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Wed, 21 Apr 2021 11:48:36 +0200 Subject: [PATCH] Use slash target path in Git bootstrap sync opts As otherwise (comparisons to) cluster configuration will fail due to Separator differences. Was already fixed for provider implementations. Signed-off-by: Hidde Beydals --- cmd/flux/bootstrap_git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/flux/bootstrap_git.go b/cmd/flux/bootstrap_git.go index a075069e..f906dae2 100644 --- a/cmd/flux/bootstrap_git.go +++ b/cmd/flux/bootstrap_git.go @@ -189,7 +189,7 @@ func bootstrapGitCmdRun(cmd *cobra.Command, args []string) error { URL: repositoryURL.String(), Branch: bootstrapArgs.branch, Secret: bootstrapArgs.secretName, - TargetPath: gitArgs.path.String(), + TargetPath: gitArgs.path.ToSlash(), ManifestFile: sync.MakeDefaultOptions().ManifestFile, GitImplementation: sourceGitArgs.gitImplementation.String(), RecurseSubmodules: bootstrapArgs.recurseSubmodules,