-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarify some env handling for pkg rules (#10455)
The logic for handling environments used when building packages is complicated. This change breaks it up into smaller functions and adds some comments explaining what each one does. A consequence of this change is that the order in which the bin directories of dependencies appear in the PATH variable while building a package is the same as the order in which the dependencies appear in the package's lockfile (previously the order was reversed). Also environment updates via `exported_env` are now applied in reverse order so that updates from packages earlier in the list can overwrite values set by updates from packages later in the list. This is consistent with how opam behaves. Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
- Loading branch information
Showing
3 changed files
with
58 additions
and
26 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
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