You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://gitlab.torproject.org/tpo/core/arti.git
cd arti
git checkout 5e2d5532d002c9df9a4cf6d83cdbe7d6125bc4be
COLUMNS=100 cargo test --locked --offline -p arti --all-features -- cli_tests
COLUMNS=1000 cargo test --locked --offline -p arti --all-features -- cli_tests
Expected output
Successful run
Successful run
Actual output
Successful run
Report of differences, apparently due to line wrapping
Discussion
Programs using clap, and many similar, may pay attention to COLUMNS.
Probably, the variable should be set rather than left unset. After, all, a conscientious program which finds it has no COLUMNS might fall back on interrogating the tty with termios ioctls.
There may be other relevant env vars. Maybe grepping the source code to clap would be helpful. It would also be nice if the API had a way to pass additional env vars as a workaround.
(edited to correct the wrong git commitid)
The text was updated successfully, but these errors were encountered:
I lean towards giving users control over this rather than setting policy for how programs are tested.
I agree with the idea of giving users control. I don't think that control is most conveniently achieved by honouring whatever COLUMNS is in the outer environment.
That is a sliding scale from "this is cargo specific" to "this is like COLUMNS" which includes what domains the application touches (e.g. git). At this time, I don't feel up to arbitrating which variables we process automatically for users and which we don't.
Steps
Expected output
Actual output
Discussion
Programs using clap, and many similar, may pay attention to
COLUMNS
.Probably, the variable should be set rather than left unset. After, all, a conscientious program which finds it has no
COLUMNS
might fall back on interrogating the tty with termios ioctls.There may be other relevant env vars. Maybe grepping the source code to clap would be helpful. It would also be nice if the API had a way to pass additional env vars as a workaround.
(edited to correct the wrong git commitid)
The text was updated successfully, but these errors were encountered: