Skip to content
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.

::toFile task variants should ignore terminal width #182

Open
matmannion opened this issue Aug 5, 2019 · 1 comment
Open

::toFile task variants should ignore terminal width #182

matmannion opened this issue Aug 5, 2019 · 1 comment
Labels

Comments

@matmannion
Copy link

I'm trying to get around a problem with our dependency tree being truncated as part of a CI task that doesn't have an interactive terminal, so uses the 80-character default and is truncating dependency versions (#173). This can be replicated pretty easily from the command line:

➜  stty cols 70 && sbt dependencyTree | grep jsr310
[info]   +-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2..

Unfortunately the terminal width also affects the output to file, which I don't think is intentional:

➜  stty cols 70 && sbt 'dependencyTree::toFile dependencies.txt'
...
[info] Wrote dependencyTree to 'dependencies.txt'
[success] Total time: 0 s, completed 05-Aug-2019 10:17:59
➜  grep jsr310 dependencies.txt 
  +-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2..
@jrudolph jrudolph added the Bug label Aug 5, 2019
@jrudolph
Copy link
Member

jrudolph commented Aug 5, 2019

Thanks, @matmannion. That cropping is indeed a bit useless for toFile. I'll see if I can do something for the next release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants