haskell / haskell/cabal

fromAbsoluteFilePath: not an absolute path when running cabal update on Windows in Github Actions with built-in ghcup

Open
#7,939 7 comments 1 reaction 0 assignees View on GitHub
attention: pr-welcome platform: windows re: error-message
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**
I'm getting the following error when running `cabal update` in very specific circumstances.

```
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
```

**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**
- Operating system: Windows on Github Actions
- `cabal-3.6.2.0`, `ghc-8.10.7` versions

**Additional context**
Related PRs and tickets:

* https://github.com/haskell/hackage-security/pull/261
* https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/308

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.