Skip to content

Tilde not expanded in paths #6776

@bgamari

Description

@bgamari

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions