Skip to content

stack build installing executables in different locations #2845

@mitchellwrosen

Description

@mitchellwrosen
Version 1.2.1, Git revision e4cceaf00b8e5b5eec6fbacbf979aa9fd1b9693f (dirty) (4136 commits) x86_64 hpack-0.14.1

Hi, I came across odd behavior and I'm not sure if it's a bug or not.

Using the following stack.yaml:

docker:
  enable: true
resolver: lts-7.12
packages: []

I can install bench, which ends up in .stack-work:

$ stack build bench
...
$ find .stack-work -name bench -type f
.stack-work/install/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/lts-7.12/8.0.1/bin/bench

But if I install yesod-bin, it ends up in ~/.stack:

$ stack build yesod-bin
...
$ find .stack-work -name yesod -type f
$ find ~/.stack -name yesod -type f
/home/mitchell/.stack/snapshots/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/lts-7.12/8.0.1/bin/yesod

Why is that? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions