-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not ask overwrite questions for empty dirs
See #9150, blank projects need not to ask permission to overwrite files.
- Loading branch information
Showing
4 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/Init/init-interactive-empty-folder.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# cabal init |
10 changes: 10 additions & 0 deletions
10
cabal-testsuite/PackageTests/Init/init-interactive-empty-folder.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = cabalTest $ do | ||
tmpDir <- testTmpDir <$> getTestEnv | ||
withDirectory tmpDir $ do | ||
res <- cabalWithStdin "init" | ||
["-i"] | ||
(replicate 20 '\n') -- Default all the way down. | ||
assertOutputDoesNotContain "backups will be created" res | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
synopsis: Do not ask overwrite permissions on blank project | ||
packages: cabal-install | ||
prs: #9155 | ||
issues: #9150 |