-
Notifications
You must be signed in to change notification settings - Fork 704
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
Fix precedence for PATH for build-tools-depends #8972
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f33c99b
Fix precedence for PATH for build-tools-depends
gbaz 38f31cd
Merge branch 'master' into gb/change-path-order
Kleidukos 3fe6c72
changelog
gbaz 4f2c1c5
Merge branch 'master' into gb/change-path-order
mergify[bot] a3a5f02
Merge branch 'master' into gb/change-path-order
gbaz 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 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 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 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 |
---|---|---|
|
@@ -347,7 +347,9 @@ sanityCheckElaboratedPackage | |
-- readProjectConfig also loads the global configuration, which is read with | ||
-- loadConfig and convertd to a ProjectConfig with convertLegacyGlobalConfig. | ||
-- | ||
-- *Important* | ||
|
||
-- * Important * | ||
|
||
-- | ||
-- You can notice how some project config options are needed to read the | ||
-- project config! This is evident by the fact that rebuildProjectConfig | ||
|
@@ -539,9 +541,10 @@ configureCompiler | |
) | ||
$ defaultProgramDb | ||
|
||
|
||
------------------------------------------------------------------------------ | ||
|
||
-- * Deciding what to do: making an 'ElaboratedInstallPlan' | ||
|
||
------------------------------------------------------------------------------ | ||
|
||
-- | Return an up-to-date elaborated install plan. | ||
|
@@ -4009,8 +4012,11 @@ setupHsScriptOptions | |
, useDistPref = builddir | ||
, useLoggingHandle = Nothing -- this gets set later | ||
, useWorkingDir = Just srcdir | ||
, useExtraPathEnv = elabExeDependencyPaths elab | ||
, useExtraEnvOverrides = dataDirsEnvironmentForPlan distdir plan | ||
, useExtraPathEnv = elabExeDependencyPaths elab ++ elabProgramPathExtra | ||
, -- note that the above adds the extra-prog-path directly following the elaborated | ||
-- dep paths, so that it overrides the normal path, but _not_ the elaborated extensions | ||
-- for build-tools-depends. | ||
useExtraEnvOverrides = dataDirsEnvironmentForPlan distdir plan | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Comma goes here (for a cleaner diff), I believe. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, please. |
||
, useWin32CleanHack = False -- TODO: [required eventually] | ||
, forceExternalSetupMethod = isParallelBuild | ||
, setupCacheLock = Just cacheLock | ||
|
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
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 @@ | ||
synopsis: Fix precedence for PATH for build-tools-depends | ||
packages: Cabal cabal-install | ||
prs: #8972 | ||
|
||
description: { | ||
|
||
- fixes a bug introduced in #8506 that caused executables in the path to take precedence over those specified in build-tools-depends. | ||
|
||
} |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe postpend → append
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
append doesn't specify to front or back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not going to debate a native speaker, but “add (something) to the end of a written document.” (def).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fun! I also don't like how artificial "postpend" sounds but on the other hand maybe extra clarity is justified here...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW I was surprised by "append doesn't specify"; I've always understood it as meaning "to the end of".