Unverified Commit 3a6fbee3 authored by Matthew Fisher's avatar Matthew Fisher Committed by GitHub

Merge pull request #4305 from bacongobbler/fix-4304

fix `helm template -x` pathing issues on Windows
parents 7cad5909 1a1ea638
......@@ -246,7 +246,9 @@ func (t *templateCmd) run(cmd *cobra.Command, args []string) error {
}
for _, manifest := range listManifests {
manifestPathSplit := strings.Split(manifest.Name, string(filepath.Separator))
// manifest.Name is rendered using linux-style filepath separators on Windows as
// well as macOS/linux.
manifestPathSplit := strings.Split(manifest.Name, "/")
// remove the chart name from the path
manifestPathSplit = manifestPathSplit[1:]
toJoin := append([]string{t.chartPath}, manifestPathSplit...)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment