Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #829 from gobuffalo/build-deletes-current-dir-fix
Browse files Browse the repository at this point in the history
running `buffalo build` with `-o` flag deletes working directory fixes #827
  • Loading branch information
markbates authored Dec 26, 2017
2 parents d2f10f4 + a7aed8c commit 27023cb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions buffalo/cmd/build/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 27023cb

Please sign in to comment.