Cannot cabal update in Github Actions on Windows
I am unable to cabal update in Github Actions on Windows when using the built-in ghcup.
The following shows the error I am seeing:
Config file path source is default config file.
Config file C:/Users/runneradmin/.cabal\config not found.
Writing default configuration to C:/Users/runneradmin/.cabal\config
Cloning into 'D:\a\cardano-node\cardano-node\dist-newstyle\src\Win32-net_-e9415802910225c6'...
HEAD is now at 3825d3a Merge pull request #9 from input-output-hk/coot/createNamedPipe-error
Cloning into 'D:\a\cardano-node\cardano-node\dist-newstyle\src\cardano-b_-c0de99f0ccd585cd'...
HEAD is now at 41545ba Merge pull request #243 from input-output-hk/lehins/expose-packed
Cloning into 'D:\a\cardano-node\cardano-node\dist-newstyle\src\cardano-c_-88a67c41a056383c'...
HEAD is now at fe7855e Merge pull request #4 from input-output-hk/properly-handle-exceptions
Cloning into 'D:\a\cardano-node\cardano-node\dist-newstyle\src\cardano-c_-e62f2aeae532ef4f'...
HEAD is now at f730793 Merge pull request #69 from newhoggy/add-ghc-8.6.5-and-8.10.2-to-ci
Cloning into 'D:\a\cardano-node\cardano-node\dist-newstyle\src\cardano-l_-793ecdcee1fc1ce7'...
HEAD is now at 1a9ec4ae9 Merge pull request #2586 from input-output-hk/lehins/fix-txin-ord
Cloning into 'D:\a\cardano-node\cardano-node\dist-newstyle\src\cardano-p_-98329c466570048a'...
HEAD is now at bb4ed71 Merge pull request #158 from input-output-hk/nc/drop-strict
Cloning into 'D:\a\cardano-node\cardano-node\dist-newstyle\src\ekg-forwa_-e7958ca478e40f05'...
HEAD is now at 297cd9d unversionedProtocolCodec simplified.
Cloning into 'D:\a\cardano-node\cardano-node\dist-newstyle\src\flat-3f12f6162a356f6a'...
HEAD is now at ee59880 Don't use the unsafe decodeUtf8
Cloning into 'D:\a\cardano-node\cardano-node\dist-newstyle\src\goblins-7fe4f5e9bbbd1224'...
HEAD is now at cde90a2 Re-enable support for GHC 8.6.5
Cloning into 'D:\a\cardano-node\cardano-node\dist-newstyle\src\hedgehog-_-d2bdd077e79afffb'...
HEAD is now at edf6945 Module re-exports (#5)
Cloning into 'D:\a\cardano-node\cardano-node\dist-newstyle\src\iohk-moni_-c7ca6b005d6f76c5'...
HEAD is now at 808724f Merge #620
Cloning into 'D:\a\cardano-node\cardano-node\dist-newstyle\src\optparse-_-5b3aca9bcb30ab3a'...
HEAD is now at 7497a29 Rename forked package
Cloning into 'D:\a\cardano-node\cardano-node\dist-newstyle\src\ouroboros_-268d3b2310e5b441'...
HEAD is now at d2d219a86 Merge #3551
Cloning into 'D:\a\cardano-node\cardano-node\dist-newstyle\src\plutus-3b55de0732f6b166'...
HEAD is now at 1efbb276e SCP-2750: Removed types and functions in Ledger.Tx that were integrated in cardano-api instead. Updated cardano-node commit hash. (#4012)
fromAbsoluteFilePath: not an absolute path
CallStack (from HasCallStack):
error, called at src\\Hackage\\Security\\Util\\Path.hs:297:31 in hackage-secur_-0.6.0.1-aa3b50000d0dcf2987b9cef364fe5c110fa92705:Hackage.Security.Util.Path
See https://github.com/input-output-hk/cardano-node/pull/3551 See https://github.com/input-output-hk/cardano-node/runs/4988604461?check_suite_focus=true
I don't see this problem when using ghcup locally on Windows nor on cabal/ghc installed with haskell/actions/setup in Github Actions