Skip to content

Specifying compiler for stack path is not working anymore #2123

Closed
@quyse

Description

@quyse

I have a project I build with two compilers simultaneously (specifically, server and client part of which built by ghc and ghcjs respectively). With stack 1.0.4.3 I can do this:

> stack path --compiler ghcjs-0.2.0_ghc-7.10.3 --local-install-root
/home/user/project/.stack-work/install/x86_64-linux/lts-5.14/ghcjs-0.2.0_ghc-7.10.2

Since stack 1.1.0 I get:

> stack path --compiler ghcjs-0.2.0_ghc-7.10.3 --local-install-root
Invalid argument `ghcjs-0.2.0_ghc-7.10.3'
Auxiliary command not found in path `stack-path'
File does not exist or is not a regular file `path'

Looks like in 2f7755d --compiler has been added to stack path as an option to print out path to compiler's binary, which overrides general meaning of --compiler as an option specifying compiler to use. --compiler still works in other commands as before, for example in stack build.

Could the new --compiler option be renamed to something else? Is there a way now to get compiler-specific stack paths?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions