-
Notifications
You must be signed in to change notification settings - Fork 699
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7847 from Daem0n-th/fix-post-checkout-cmd-bug
Fix #7641 : Fix `post-checkout-command` bug
- Loading branch information
Showing
8 changed files
with
44 additions
and
1 deletion.
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
8 changes: 8 additions & 0 deletions
8
cabal-testsuite/PackageTests/postCheckoutCommand/cabal.negative.project
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,8 @@ | ||
packages: . | ||
|
||
source-repository-package | ||
type: git | ||
-- A Sample repo to test post-checkout-command | ||
location: https://github.com/haskell/bytestring | ||
post-checkout-command: false | ||
-- https://en.wikipedia.org/wiki/True_and_false_(commands) |
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,2 @@ | ||
# cabal v2-build | ||
# cabal v2-build |
8 changes: 8 additions & 0 deletions
8
cabal-testsuite/PackageTests/postCheckoutCommand/cabal.positive.project
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,8 @@ | ||
packages: . | ||
|
||
source-repository-package | ||
type: git | ||
-- A Sample repo to test post-checkout-command | ||
location: https://github.com/haskell/bytestring | ||
post-checkout-command: true | ||
-- https://en.wikipedia.org/wiki/True_and_false_(commands) |
8 changes: 8 additions & 0 deletions
8
cabal-testsuite/PackageTests/postCheckoutCommand/cabal.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,8 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = cabalTest $ do | ||
skipIfWindows | ||
withProjectFile "cabal.positive.project" $ do | ||
cabal "v2-build" ["-v0"] | ||
withProjectFile "cabal.negative.project" $ do | ||
fails $ cabal "v2-build" ["-v0"] |
9 changes: 9 additions & 0 deletions
9
cabal-testsuite/PackageTests/postCheckoutCommand/example.cabal
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,9 @@ | ||
cabal-version: 2.4 | ||
name: example | ||
version: 1.0 | ||
|
||
library | ||
exposed-modules: Example | ||
build-depends: base | ||
hs-source-dirs: src | ||
default-language: Haskell2010 |
4 changes: 4 additions & 0 deletions
4
cabal-testsuite/PackageTests/postCheckoutCommand/src/Example.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,4 @@ | ||
module Example (someFunc) where | ||
|
||
someFunc :: IO () | ||
someFunc = putStrLn "Example" |
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: Fix post-checkout-command crash when 0 exit status bug | ||
issues: #7641 | ||
packages: cabal-install | ||
prs: #7847 |