haskell / haskell/cabal

cabal install won't replace symlink to a different path

Open
#1,452 2 comments 1 reaction 0 assignees View on GitHub
Cabal: other meta: easy type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

Cabal refuses to replace symlinks in `symlink-bindir` unless it detects it installed the symlink itself. The heuristics to detect this is too restrictive, and breaks if the new symlink should point to a different path.

This happens when the prefix is not fixed, for instance on the default install of the Haskell Platform for Mac OS X.

_EDIT_: avoid the term "symlink target" since it's ambiguous (the man pages of ln(1) for the BSD and GNU versions use conflicting terminology).

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.