Skip to content

cabal exec -w --with-compiler (generalization of #1899) #2177

Closed

Description

@lspitzner

It should be possible to have -w flag (see cabal configure/install) on cabal exec command. (and cabal init, but that really is not important. cabal sandbox hc-pkg is just cabal exec -- ghc-pkg (right?), which is my reasoning for calling this "generalization".)

In #1899 the same was discussed for cabal sandbox hc-pkg. The suggestion was to use cabal configure -w .. followed by other stuff. But:

  • cabal configure needs an actual package. cabal exec should be usable without that.
  • The suggested solution does not seem to work on both the currently published 1.20.0.3 and on the repository head.. for both cabal exec and cabal sandbox hc-pkg. (i have tested multiple times now, but it is easy to make some strange mistake.. but even if i did, i does not affect the other point)

thanks to the contributors for their work

Activity

  1. changed the title [-]cabal exec -w (generalization of #1899)[/-] [+]cabal exec -w --with-compiler (generalization of #1899)[/+] on Mar 9, 2015
  2. added this to the milestone on Apr 24, 2015
  3. adamgundry commented on Oct 11, 2015

    @adamgundry
    Member

    The suggested solution should be fixed by #2859. Adding a -w flag to cabal exec and cabal sandbox hc-pkg is a good idea, patches welcome.

  4. modified the milestones: cabal-install 1.24, on Feb 21, 2016
  5. modified the milestone: cabal-install 2.0 on Sep 6, 2016
  6. hvr commented on Nov 5, 2018

    @hvr
    Member

    NB: v2-exec supports this already

  7. gbaz commented on Aug 28, 2021

    @gbaz
    Collaborator

    closing on above basis

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions