haskell / haskell/cabal

Tilde not expanded in paths

Open
#6,776 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**
I've noticed a variety of places where `cabal-install` accepts paths (e.g. on the command-line) yet doesn't expand tilde as is typical.

**To Reproduce**
Steps to reproduce the behavior:

```
$ cabal v2-install cabal-install --installdir=~/.cabal/bin
Resolving dependencies...
Up to date
~/.cabal/bin: createDirectory: does not exist (No such file or directory)
```
I know there have been other cases although I can't think of them off-hand.

**Expected behavior**
The path `~/.cabal/bin` be expanded to `$HOME/.cabal/bin`.

**System information**
- NixOS 20.03
- `cabal-install` 3.2.0.0

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.