Skip to content

Conversation

@akshaymankar
Copy link
Contributor

Please include the following checklist in your PR:

  • Any changes that could be relevant to users have been recorded in the ChangeLog.md
  • The documentation has been updated, if necessary.

Fixes #4552

@dbaynard
Copy link
Contributor

dbaynard commented Feb 5, 2019

Thanks for the PR! I'll review shortly.

@dbaynard
Copy link
Contributor

dbaynard commented Feb 5, 2019

Actually, I'll rebase & force push first — I'm not confident on github's handling of review comments in the presence of force pushes, and I want to run tests on latest master. Thanks!

@dbaynard dbaynard force-pushed the 4552-tree-deps-with-targets branch from 0df0d23 to 029022e Compare February 5, 2019 22:18
Copy link
Contributor

@dbaynard dbaynard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've nearly reviewed it all. I've made some changes to a number of bits (not limited to this PR; there are some uninformative variable names in related code) which I'll push tomorrow, when I'm done.

Meanwhile, there are a few questions.

Also, it would be good to have some tests in the unit test suite, not just the integration tests. I'm happy to tackle this — though it you want to, by all means go ahead.

@dbaynard
Copy link
Contributor

dbaynard commented Feb 6, 2019

Ah but we can't call it projectPackages because of name shadowing 🤦 (hence the build failures). I've included the changes in 7e204b8 in my WIP.

@dbaynard
Copy link
Contributor

I'm finding testing to be a real pain, here. I wrote a short test suite, but because the tree is printed immediately after it has been generated it needs an io-capture like wrapper. I'm considering moving to use rio-prettyprint. WIP.

@snoyberg
Copy link
Contributor

For now, if you're able to add an integration test that tests this codepath, I'd be able to review and merge, and we can deal with refactoring and unit tests after a merge.

@snoyberg snoyberg merged commit 7e204b8 into commercialhaskell:master Apr 12, 2019
@akshaymankar akshaymankar deleted the 4552-tree-deps-with-targets branch April 15, 2019 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ls dependencies --tree fails when targets are provided

4 participants