Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ Behavior changes:
`recent-snapshots: https://stackage.org/api/v1/snapshots`.
* The `--[no-]keep-ghc-rts` flag of Stack's `config env` command is now enabled
by default, consistent with Stack's `exec` command.
* On Windows, in the Stack environment, the MSYS2 `usr/local/bin` directory (if
it exists) is now searched before the MSYS2 `usr/bin` directory, rather than
after.

Other enhancements:

Expand Down
8 changes: 4 additions & 4 deletions doc/topics/stack_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ The GHC-supplied MinGW `bin` directory.
The `bin` directory for the specified MSYS2 environment of the
[Stack-supplied MSYS2](developing_on_windows.md).

## Stack-supplied MSYS2 `usr\bin` directory (Windows only)
## Stack-supplied MSYS2 `usr\local\bin` directory (Windows only)

The `usr\bin` directory for the
The `usr\local\bin` directory for the
[Stack-supplied MSYS2](developing_on_windows.md).

## Stack-supplied MSYS2 `usr\local\bin` directory (Windows only)
## Stack-supplied MSYS2 `usr\bin` directory (Windows only)

The `usr\local\bin` directory for the
The `usr\bin` directory for the
[Stack-supplied MSYS2](developing_on_windows.md).

## Specified extra paths
Expand Down
4 changes: 3 additions & 1 deletion src/Stack/Setup/Installed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,10 @@ toolExtraDirs tool = do
pure mempty
{ bins =
[ dir </> relDirMsysEnvPrefix </> relDirBin
, dir </> relDirUsr </> relDirBin
-- Stack follows the Unix-like convention that usr/local/bin
-- should have search priority over usr/bin.
, dir </> relDirUsr </> relDirLocal </> relDirBin
, dir </> relDirUsr </> relDirBin
]
, includes =
[ dir </> relDirMsysEnvPrefix </> relDirInclude
Expand Down
Loading