-
Notifications
You must be signed in to change notification settings - Fork 691
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
fromAbsoluteFilePath: not an absolute path when running cabal update on Windows in Github Actions with built-in ghcup #7939
Comments
Seems |
I tracked down the error by using a patched binary: https://github.com/hasufell/cardano-node/runs/4991673164?check_suite_focus=true
So it fails because of |
I was able to reproduce the error by adding this to the global
Instead of So I'm assuming that this line is causing issues: https://github.com/input-output-hk/cardano-node/pull/3551/files#diff-c09cc8dc973415b1221308559b96942a1c4b872e690bf360fc22d9b42822d519R32 echo "CABAL_DIR=$HOME/.cabal" >> $GITHUB_ENV I printed the value and it shows
Under windows How all this ends up as So, what should cabal do here? Interpret cygwin style paths? How does it know what is meant? But for sure the error needs to be improved. |
@newhoggy what do you think about the comments above? maybe fixing the path in the gha config and a better error would be enough? |
@newhoggy: any news? and comments? |
Definitely a better error message will help. |
Right, let's improve the error message; volunteers welcome! Independently, let's try to code-dive and understand how the path arises and what cabal could do better here. |
Describe the bug
I'm getting the following error when running
cabal update
in very specific circumstances.To Reproduce
Steps to reproduce the behavior:
For this repository: https://github.com/input-output-hk/cardano-node
Checkout
always-use-ghcup
. Create a new PR with the latest commit. (You may need to amend the commit to force a build).I've not seen the error outside of this environment.
Expected behavior
The
cabal update
command should work.System information
cabal-3.6.2.0
,ghc-8.10.7
versionsAdditional context
Related PRs and tickets:
The text was updated successfully, but these errors were encountered: