Skip to content

No clear way to install executables on Windows #5748

Closed

Description

@bgamari

It seems that cabal new-install is quite insistent on installing executables with symlinks. However, this facility is not available on Windows. Consequently any attempt to use new-install on Windows ends with either cabal-install complaining that symlink-bindir is not defined or that symlinks aren't supported on Windows.

Activity

  1. jneira commented on Nov 28, 2018

    @jneira
    Member

    It seems there is a pr about it: #5684

  2. AndreasPK commented on Mar 20, 2019

    @AndreasPK
    Collaborator

    There are now new flags available to allow this. However they are off by default.

    #5684 seems to have stalled.

    Is there a reason against simply making --install-method=copy and --overwrite-policy=always the default on windows?

  3. fgaz commented on Mar 23, 2019

    @fgaz
    Member

    @andersk The flags introduced in #5870 can be configured in ~/.cabal/config, but the configuration will not be effective until #5942 is fixed. The windows default is still symlink though; PRs welcome.

    There's more discussion about this and a possible auto method in #5837 and #5843

  4. AndreasPK commented on Aug 30, 2019

    @AndreasPK
    Collaborator

    --install-method=copy works now, however cabals default method still fails on windows.

    Is there a reason why we can't just default to copy on windows?

  5. fgaz commented on Aug 31, 2019

    @fgaz
    Member

    @AndreasPK #5837 has dome discussion about that

  6. fgaz commented on Dec 15, 2020

    @fgaz
    Member

    Fixed in #6519

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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