-
Notifications
You must be signed in to change notification settings - Fork 723
prepend rather than append extra prog path #8506
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2b6995d
prepend rather than append extra prog path
gbaz 85b6486
changelog
gbaz e02d5dd
test
gbaz a21c039
skip on windows
gbaz b7cf63a
update test
gbaz 7848c91
fix test
gbaz de8ddd2
reenable windows skip
gbaz 3d75656
Update setup.test.hs
gbaz a2151f7
Merge branch 'master' into gb/prepend-progpath
mergify[bot] 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| module MyLibrary () where |
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: *.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,20 @@ | ||
| name: CheckExtraProgPath | ||
| version: 0.1 | ||
| license: BSD3 | ||
| license-file: LICENSE | ||
| author: Alexander Vershilov | ||
| maintainer: Alexander Vershilov | ||
| synopsis: Check Extra Prog Path | ||
| category: PackageTests | ||
| build-type: Simple | ||
| cabal-version: 2.0 | ||
|
|
||
| description: | ||
| Check that Cabal recognizes an override of the prog path. | ||
|
|
||
| Library | ||
| pkgconfig-depends: zlib | ||
| default-language: Haskell2010 | ||
| build-depends: base <5.0 | ||
| exposed-modules: | ||
| MyLibrary |
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,3 @@ | ||
| #!/usr/bin/sh | ||
|
|
||
| exit 1; |
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 | ||
| Warning: cannot determine version of <ROOT>/./pkg-config : | ||
| "" | ||
| Warning: cannot determine version of <ROOT>/./pkg-config : | ||
| "" | ||
| Resolving dependencies... | ||
| Error: cabal: Could not resolve dependencies: | ||
| [__0] next goal: CheckExtraProgPath (user goal) | ||
| [__0] rejecting: CheckExtraProgPath-0.1 (conflict: pkg-config package zlib-any, not found in the pkg-config database) | ||
| [__0] fail (backjumping, conflict set: CheckExtraProgPath) | ||
| After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: CheckExtraProgPath (2) |
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,8 @@ | ||
| import Test.Cabal.Prelude | ||
|
|
||
| -- Test that extra-prog-path overrides the path for pkg-config | ||
| main = cabalTest $ do | ||
| -- skipped on windows because using a script to dummy up an executable doesn't work the same. | ||
| skipIfWindows | ||
gbaz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| cdir <- testCurrentDir `fmap` getTestEnv | ||
| fails $ cabal "v2-build" ["--extra-prog-path="++cdir] | ||
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 @@ | ||
| synopsis: prepend rather than append extra prog path | ||
| packages: Cabal | ||
| prs: #8506 | ||
| issues: #6304 | ||
| description: { | ||
| Prepends the extra-prog-path to the system path rather than appending, to allow binaries in the extra path to override defaults. | ||
| } |
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.