commercialhaskell / commercialhaskell/stack

`--docker-image` should imply `--docker`

Open
#1,946 5 comments 0 reactions 0 assignees View on GitHub
awaiting pull request component: docker component: options parsing type: enhancement
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

Either I'm missing something, or I'm doing something wrong. Both are likely.

I have two docker images, purely to build for different deployments. Primarily I don't want to build with docker, hence I have the following in `stack.yaml`.

```
docker:
enabled: false
```

When trying to locate the produced product, using `stack --docker-image target/debian8.3 path --dist-dir`, I get the exactly same result as if I had omitted the `--docker-image` argument. To get the actual path for the products, I need to specify `--docker --docker-image target/debian8.3`.

So we have:

```
stack --docker-image target/debian8.3 path --dist-dir == stack path --dist-dir
```

where I would have expected

```
stack --docker-image target/debian8.3 path --dist-dir == stack --docker --docker-image target/debian8.3 path --dist-dir
```

Should `--docker-image` not imply `--docker`?

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.