From 5a6c782a209f85c2204a8a3b95ee40990487eade Mon Sep 17 00:00:00 2001 From: Chris Bednarski Date: Thu, 11 Feb 2016 11:34:09 -0800 Subject: [PATCH] Added ToSlash around windows paths so they will become unixy --- scripts/generate-plugins.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/generate-plugins.go b/scripts/generate-plugins.go index 84a69ae9c..6d5cfcc28 100644 --- a/scripts/generate-plugins.go +++ b/scripts/generate-plugins.go @@ -96,15 +96,15 @@ func makeImports(builders, provisioners, postProcessors []plugin) string { plugins := []string{} for _, builder := range builders { - plugins = append(plugins, fmt.Sprintf("\t%s \"github.com/mitchellh/packer/%s\"\n", builder.ImportName, builder.Path)) + plugins = append(plugins, fmt.Sprintf("\t%s \"github.com/mitchellh/packer/%s\"\n", builder.ImportName, filepath.ToSlash(builder.Path))) } for _, provisioner := range provisioners { - plugins = append(plugins, fmt.Sprintf("\t%s \"github.com/mitchellh/packer/%s\"\n", provisioner.ImportName, provisioner.Path)) + plugins = append(plugins, fmt.Sprintf("\t%s \"github.com/mitchellh/packer/%s\"\n", provisioner.ImportName, filepath.ToSlash(provisioner.Path))) } for _, postProcessor := range postProcessors { - plugins = append(plugins, fmt.Sprintf("\t%s \"github.com/mitchellh/packer/%s\"\n", postProcessor.ImportName, postProcessor.Path)) + plugins = append(plugins, fmt.Sprintf("\t%s \"github.com/mitchellh/packer/%s\"\n", postProcessor.ImportName, filepath.ToSlash(postProcessor.Path))) } // Make things pretty