-
Notifications
You must be signed in to change notification settings - Fork 725
Require cabal.project packages and/or optional-packages field #11574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tbidne
wants to merge
1
commit into
haskell:master
Choose a base branch
from
tbidne:tbidne/7401
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+243
−5
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,2 +1,4 @@ | ||
| ignore-project: False | ||
| optimization: 2 | ||
|
|
||
| packages: . |
This file contains hidden or 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,17 @@ | ||
| cabal-version: 3.0 | ||
|
|
||
| -- Required by ./cabal.project, due to cabal.project requiring a valid | ||
| -- packages or optional-packages field. | ||
|
|
||
| name: main | ||
| version: 0.1 | ||
| build-type: Simple | ||
| category: Test | ||
| maintainer: Dummy | ||
| synopsis: Dummy | ||
| description: Dummy | ||
| license: BSD-3-Clause | ||
|
|
||
| library | ||
| build-depends: base | ||
| default-language: Haskell2010 |
11 changes: 11 additions & 0 deletions
11
cabal-testsuite/PackageTests/ProjectPackages/Empty/cabal.out
This file contains hidden or 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,11 @@ | ||
| # cabal v2-build | ||
| Error: [Cabal-7136] | ||
| There is no <pkgname>.cabal package file or cabal.project file. To build packages locally you need at minimum a <pkgname>.cabal file. You can use 'cabal init' to create one. | ||
|
|
||
| For non-trivial projects you will also want a cabal.project file in the root directory of your project. This file lists the packages in your project and all other build configuration. See the Cabal user guide for full details. | ||
|
|
||
| # cabal v2-build | ||
| Error: [Cabal-7136] | ||
| There is no <pkgname>.cabal package file or cabal.project file. To build packages locally you need at minimum a <pkgname>.cabal file. You can use 'cabal init' to create one. | ||
|
|
||
| For non-trivial projects you will also want a cabal.project file in the root directory of your project. This file lists the packages in your project and all other build configuration. See the Cabal user guide for full details. |
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/ProjectPackages/Empty/cabal.test.hs
This file contains hidden or 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,5 @@ | ||
| import Test.Cabal.Prelude | ||
|
|
||
| main = cabalTest $ do | ||
| fails $ cabal "v2-build" ["--dry-run"] | ||
| fails $ cabal "v2-build" ["--dry-run", "all"] |
2 changes: 2 additions & 0 deletions
2
cabal-testsuite/PackageTests/ProjectPackages/FieldNoCabal/cabal.out
This file contains hidden or 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 |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ProjectPackages/FieldNoCabal/cabal.project
This file contains hidden or 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 @@ | ||
| packages: . |
9 changes: 9 additions & 0 deletions
9
cabal-testsuite/PackageTests/ProjectPackages/FieldNoCabal/cabal.test.hs
This file contains hidden or 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 @@ | ||
| import Test.Cabal.Prelude | ||
|
|
||
| main = cabalTest $ do | ||
| let expected = "- The package directory '.' does not contain any .cabal file." | ||
| r1 <- fails $ cabal' "v2-build" ["--dry-run"] | ||
| assertOutputContains expected r1 | ||
|
|
||
| r2 <- fails $ cabal' "v2-build" ["--dry-run", "all"] | ||
| assertOutputContains expected r2 |
10 changes: 10 additions & 0 deletions
10
cabal-testsuite/PackageTests/ProjectPackages/MultiLocalField/cabal.out
This file contains hidden or 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 @@ | ||
| # cabal v2-build | ||
| Resolving dependencies... | ||
| Build profile: -w ghc-<GHCVER> -O1 | ||
| In order, the following would be built: | ||
| - main-0.1 (lib) (first run) | ||
|
|
||
| # cabal v2-build | ||
| Build profile: -w ghc-<GHCVER> -O1 | ||
| In order, the following would be built: | ||
| - main-0.1 (lib) (first run) |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ProjectPackages/MultiLocalField/cabal.project
This file contains hidden or 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 @@ | ||
| -- empty |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ProjectPackages/MultiLocalField/cabal.project.local
This file contains hidden or 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 @@ | ||
| packages: . |
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/ProjectPackages/MultiLocalField/cabal.test.hs
This file contains hidden or 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,5 @@ | ||
| import Test.Cabal.Prelude | ||
|
|
||
| main = cabalTest $ do | ||
| cabal "v2-build" ["--dry-run"] | ||
| cabal "v2-build" ["--dry-run", "all"] |
14 changes: 14 additions & 0 deletions
14
cabal-testsuite/PackageTests/ProjectPackages/MultiLocalField/main.cabal
This file contains hidden or 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,14 @@ | ||
| cabal-version: 3.0 | ||
|
|
||
| name: main | ||
| version: 0.1 | ||
| build-type: Simple | ||
| category: Test | ||
| maintainer: Joe | ||
| synopsis: Test input | ||
| description: Test input | ||
| license: BSD-3-Clause | ||
|
|
||
| library | ||
| build-depends: base | ||
| default-language: Haskell2010 |
7 changes: 7 additions & 0 deletions
7
cabal-testsuite/PackageTests/ProjectPackages/MultiNoField/cabal.out
This file contains hidden or 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,7 @@ | ||
| # cabal v2-build | ||
| Error: [Cabal-7168] | ||
| The project config '<ROOT>/cabal.project' requires at least one of the fields 'packages' or 'optional-packages', but neither was specified. | ||
|
|
||
| # cabal v2-build | ||
| Error: [Cabal-7168] | ||
| The project config '<ROOT>/cabal.project' requires at least one of the fields 'packages' or 'optional-packages', but neither was specified. |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ProjectPackages/MultiNoField/cabal.project
This file contains hidden or 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 @@ | ||
| -- empty |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ProjectPackages/MultiNoField/cabal.project.local
This file contains hidden or 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 @@ | ||
| -- empty |
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/ProjectPackages/MultiNoField/cabal.test.hs
This file contains hidden or 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,5 @@ | ||
| import Test.Cabal.Prelude | ||
|
|
||
| main = cabalTest $ do | ||
| fails $ cabal "v2-build" ["--dry-run"] | ||
| fails $ cabal "v2-build" ["--dry-run", "all"] |
14 changes: 14 additions & 0 deletions
14
cabal-testsuite/PackageTests/ProjectPackages/MultiNoField/main.cabal
This file contains hidden or 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,14 @@ | ||
| cabal-version: 3.0 | ||
|
|
||
| name: main | ||
| version: 0.1 | ||
| build-type: Simple | ||
| category: Test | ||
| maintainer: Joe | ||
| synopsis: Test input | ||
| description: Test input | ||
| license: BSD-3-Clause | ||
|
|
||
| library | ||
| build-depends: base | ||
| default-language: Haskell2010 |
7 changes: 7 additions & 0 deletions
7
cabal-testsuite/PackageTests/ProjectPackages/NoField/cabal.out
This file contains hidden or 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,7 @@ | ||
| # cabal v2-build | ||
| Error: [Cabal-7168] | ||
| The project config '<ROOT>/cabal.project' requires at least one of the fields 'packages' or 'optional-packages', but neither was specified. | ||
|
|
||
| # cabal v2-build | ||
| Error: [Cabal-7168] | ||
| The project config '<ROOT>/cabal.project' requires at least one of the fields 'packages' or 'optional-packages', but neither was specified. |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ProjectPackages/NoField/cabal.project
This file contains hidden or 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 @@ | ||
| -- empty |
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/ProjectPackages/NoField/cabal.test.hs
This file contains hidden or 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,5 @@ | ||
| import Test.Cabal.Prelude | ||
|
|
||
| main = cabalTest $ do | ||
| fails $ cabal "v2-build" ["--dry-run"] | ||
| fails $ cabal "v2-build" ["--dry-run", "all"] |
14 changes: 14 additions & 0 deletions
14
cabal-testsuite/PackageTests/ProjectPackages/NoField/main.cabal
This file contains hidden or 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,14 @@ | ||
| cabal-version: 3.0 | ||
|
|
||
| name: main | ||
| version: 0.1 | ||
| build-type: Simple | ||
| category: Test | ||
| maintainer: Joe | ||
| synopsis: Test input | ||
| description: Test input | ||
| license: BSD-3-Clause | ||
|
|
||
| library | ||
| build-depends: base | ||
| default-language: Haskell2010 |
7 changes: 7 additions & 0 deletions
7
cabal-testsuite/PackageTests/ProjectPackages/NoFieldNoCabal/cabal.out
This file contains hidden or 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,7 @@ | ||
| # cabal v2-build | ||
| Error: [Cabal-7168] | ||
| The project config '<ROOT>/cabal.project' requires at least one of the fields 'packages' or 'optional-packages', but neither was specified. | ||
|
|
||
| # cabal v2-build | ||
| Error: [Cabal-7168] | ||
| The project config '<ROOT>/cabal.project' requires at least one of the fields 'packages' or 'optional-packages', but neither was specified. |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ProjectPackages/NoFieldNoCabal/cabal.project
This file contains hidden or 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 @@ | ||
| -- empty |
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/ProjectPackages/NoFieldNoCabal/cabal.test.hs
This file contains hidden or 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,5 @@ | ||
| import Test.Cabal.Prelude | ||
|
|
||
| main = cabalTest $ do | ||
| fails $ cabal "v2-build" ["--dry-run"] | ||
| fails $ cabal "v2-build" ["--dry-run", "all"] |
7 changes: 7 additions & 0 deletions
7
cabal-testsuite/PackageTests/ProjectPackages/OtherNoField/cabal.out
This file contains hidden or 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,7 @@ | ||
| # cabal v2-build | ||
| Error: [Cabal-7168] | ||
| The project config '<ROOT>/dir/cabal.project' requires at least one of the fields 'packages' or 'optional-packages', but neither was specified. | ||
|
|
||
| # cabal v2-build | ||
| Error: [Cabal-7168] | ||
| The project config '<ROOT>/dir/cabal.project' requires at least one of the fields 'packages' or 'optional-packages', but neither was specified. |
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/ProjectPackages/OtherNoField/cabal.test.hs
This file contains hidden or 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,5 @@ | ||
| import Test.Cabal.Prelude | ||
|
|
||
| main = cabalTest $ do | ||
| fails $ cabal "v2-build" ["--dry-run", "--project-file", "dir/cabal.project"] | ||
| fails $ cabal "v2-build" ["--dry-run", "--project-file", "dir/cabal.project", "all"] |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ProjectPackages/OtherNoField/dir/cabal.project
This file contains hidden or 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 @@ | ||
| -- empty |
14 changes: 14 additions & 0 deletions
14
cabal-testsuite/PackageTests/ProjectPackages/OtherNoField/main.cabal
This file contains hidden or 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,14 @@ | ||
| cabal-version: 3.0 | ||
|
|
||
| name: main | ||
| version: 0.1 | ||
| build-type: Simple | ||
| category: Test | ||
| maintainer: Joe | ||
| synopsis: Test input | ||
| description: Test input | ||
| license: BSD-3-Clause | ||
|
|
||
| library | ||
| build-depends: base | ||
| default-language: Haskell2010 |
9 changes: 9 additions & 0 deletions
9
cabal-testsuite/PackageTests/ProjectPackages/ParentNoField/cabal.out
This file contains hidden or 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 v2-build | ||
| Configuration is affected by cabal.project at '<GBLTMPDIR>'. | ||
| Error: [Cabal-7168] | ||
| The project config '<ROOT>/cabal.project' requires at least one of the fields 'packages' or 'optional-packages', but neither was specified. | ||
|
|
||
| # cabal v2-build | ||
| Configuration is affected by cabal.project at '<GBLTMPDIR>'. | ||
| Error: [Cabal-7168] | ||
| The project config '<ROOT>/cabal.project' requires at least one of the fields 'packages' or 'optional-packages', but neither was specified. |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ProjectPackages/ParentNoField/cabal.project
This file contains hidden or 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 @@ | ||
| -- empty |
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/ProjectPackages/ParentNoField/cabal.test.hs
This file contains hidden or 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,5 @@ | ||
| import Test.Cabal.Prelude | ||
|
|
||
| main = cabalTest $ withDirectory "./dir" $ do | ||
| fails $ cabal "v2-build" ["--dry-run"] | ||
| fails $ cabal "v2-build" ["--dry-run", "all"] |
14 changes: 14 additions & 0 deletions
14
cabal-testsuite/PackageTests/ProjectPackages/ParentNoField/dir/main.cabal
This file contains hidden or 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,14 @@ | ||
| cabal-version: 3.0 | ||
|
|
||
| name: main | ||
| version: 0.1 | ||
| build-type: Simple | ||
| category: Test | ||
| maintainer: Joe | ||
| synopsis: Test input | ||
| description: Test input | ||
| license: BSD-3-Clause | ||
|
|
||
| library | ||
| build-depends: base | ||
| default-language: Haskell2010 |
This file contains hidden or 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
This file contains hidden or 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,20 @@ | ||
| synopsis: Require cabal.project packages and/or optional-packages field. | ||
| packages: cabal-install | ||
| prs: #11574 | ||
| issues: #7401 | ||
| significance: | ||
|
|
||
| description: { | ||
|
|
||
| Currently, if a cabal.project file is present and the `packages` and | ||
| `optional-packages` fields do not exist, a warning will be issued, and | ||
| cabal will fail with a different, potentially misleading error message: | ||
|
|
||
| "There is no <pkgname>.cabal package file or cabal.project file..." | ||
|
|
||
| This changes it so that the prior warning is now an error, hence will cause | ||
| cabal to fail before the misleading error is given. That at least one of | ||
| these fields is required is already specified in the docs, hence this is not | ||
| a specification change. | ||
|
|
||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.