commercialhaskell / commercialhaskell/stack

`dot`\`ls dependencies` targets: respect project package components

Open
#4,343 5 comments 0 reactions 1 assignee Claimed by @mpilgrem View on GitHub
component: dot component: ls dependencies type: enhancement
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

### General summary/comments (optional)
`stack ls dependencies [TARGET] --depth 1` also return packages which are not in scope

### Steps to reproduce
Use project which has library and exe component.
Ask for `--depth 1` dependencies of exe and it will also return the packages of library.
Those packages are not in scope for exe. Only for library.

### Stack version
1.7..1

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.