diff --git a/builder/virtualbox/builder.go b/builder/virtualbox/builder.go index a0b23bcad..5b5dbfd92 100644 --- a/builder/virtualbox/builder.go +++ b/builder/virtualbox/builder.go @@ -222,7 +222,7 @@ func (b *Builder) Prepare(raws ...interface{}) error { if _, err := os.Stat(b.config.OutputDir); err == nil { if b.config.PackerForce { log.Printf("Build forced, removing existing output directory: %s", string(b.config.OutputDir)) - os.RemoveAll(b.config.OutputDir) + os.RemoveAll(b.config.OutputDir) } else { errs = append(errs, errors.New("Output directory already exists. It must not exist.")) } diff --git a/builder/vmware/builder.go b/builder/vmware/builder.go index 883fd5484..3bbf0b20f 100644 --- a/builder/vmware/builder.go +++ b/builder/vmware/builder.go @@ -178,7 +178,7 @@ func (b *Builder) Prepare(raws ...interface{}) error { if _, err := os.Stat(b.config.OutputDir); err == nil { if b.config.PackerForce { log.Printf("Build forced, removing existing output directory: %s", string(b.config.OutputDir)) - os.RemoveAll(b.config.OutputDir) + os.RemoveAll(b.config.OutputDir) } else { errs = append(errs, errors.New("Output directory already exists. It must not exist.")) } diff --git a/packer/build.go b/packer/build.go index 62b96203a..c7b71e23a 100644 --- a/packer/build.go +++ b/packer/build.go @@ -47,7 +47,7 @@ type Build interface { // strictly prohibited. SetDebug(bool) - // SetForce will enable/disable forcing a build when artifacts exist. + // SetForce will enable/disable forcing a build when artifacts exist. // // When SetForce is set to true, existing artifacts from the build are // deleted prior to the build.