From a7aed8c14efbcb127f2981bc9aa2125de2f684a3 Mon Sep 17 00:00:00 2001 From: Mark Bates Date: Tue, 26 Dec 2017 11:46:25 -0500 Subject: [PATCH] running `buffalo build` with `-o` flag deletes working directory fixes #827 --- buffalo/cmd/build/target.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/buffalo/cmd/build/target.go b/buffalo/cmd/build/target.go index b1d8ef3cf..897638579 100644 --- a/buffalo/cmd/build/target.go +++ b/buffalo/cmd/build/target.go @@ -10,9 +10,6 @@ import ( func (b *Builder) prepTarget() error { // Create output directory if not exists outputDir := filepath.Join(b.Root, filepath.Dir(b.Bin)) - logrus.Debugf("preparing target dir %s", outputDir) - os.RemoveAll(outputDir) - if _, err := os.Stat(outputDir); os.IsNotExist(err) { os.MkdirAll(outputDir, 0776) logrus.Debugf("creating target dir %s", outputDir)