-
Notifications
You must be signed in to change notification settings - Fork 698
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
cabal
doesn't inherit the path from cabal/config
in PowerShell
#9519
Comments
Actually even simpler: PS C:\Users\Javier\code\cardano\ouroboros-consensus> rm -r -fo .\dist-newstyle\
PS C:\Users\Javier\code\cardano\ouroboros-consensus> cabal build cardano-test
Error: cabal-3.10.2.0.exe: The program 'git' is required but it could not be
found.
PS C:\Users\Javier\code\cardano\ouroboros-consensus> $env:Path += ';C:\msys64\usr\bin'
PS C:\Users\Javier\code\cardano\ouroboros-consensus> cabal build cardano-test
Cloning into '/c/Users/Javier/code/cardano/ouroboros-consensus/dist-newstyle/src/cardano-l_-118cb9e4f6caae19'...
remote: Enumerating objects: 143276, done.
... |
cabal run
doesn't inherit the path from cabal/config
in PowerShellcabal
doesn't inherit the path from cabal/config
in PowerShell
I found a couple of things already:
I have some on-going work. Last thing remaining is passing the extra-prog-path from cabal/config to |
The changes in the linked PR should fix this. In particular I can do what is listed there without issues: PS C:\Users\Javier\code> C:\\Users\\Javier\\code\\cabal\\dist-newstyle\\build\\x86_64-windows\\ghc-9.6.3\\cabal-install-3.11.0.0\\x\\cabal\\build\\cabal\\cabal.exe get network
Unpacking to network-3.1.4.0\
PS C:\Users\Javier\code> cd .\network-3.1.4.0\
PS C:\Users\Javier\code\network-3.1.4.0> C:\\Users\\Javier\\code\\cabal\\dist-newstyle\\build\\x86_64-windows\\ghc-9.6.3\\cabal-install-3.11.0.0\\x\\cabal\\build\\cabal\\cabal.exe build network:lib:network
<succeeds> Cloning a repository in When resolving the |
Was this a regression compared to 3.6? |
Not to my knowledge. As far as I know, Cabal's path handling has been stable for many years. Many many years ago I extended the handling to work with build on 3.6. The issue here is about The above-linked issue, which is speculated to be related but I think is not, was filed against 3.6, and the more recent manifestation on that thread is also with 3.6. |
Describe the bug
Cabal config specifies (as configured by
GHCup
):And I have this test-suite that depends on external DLLs:
However, when I try to run it the following just aborts with no error message:
It is using
C:\cabal\config
because if I introduce garbage there I see:If I manually extend the PATH, it works:
Which suggests the pwsh path is not being extended properly.
Expected behavior
I would expect cabal to extend the PATH also on PowerShell.
System information
Additional context
In MinGW shell it works just fine.
The text was updated successfully, but these errors were encountered: