Skip to content

Commit 76235ba

Browse files
committed
Set TERM=dumb fallback in devx env script for CI/container environments
GHC's Makefile unconditionally calls `tput bold` and `tput sgr0` (lines 217-218) which fail with "No value for $TERM and no -T specified" when TERM is unset. This happens in CI runners and containers where no terminal is attached. Set TERM to "dumb" as a fallback after sourcing setup.sh so ncurses tools like tput degrade gracefully instead of erroring.
1 parent 39cea88 commit 76235ba

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

flake.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,10 @@
383383
[ -n "$_DEVX_HOME" ] && export HOME="$_DEVX_HOME"
384384
unset _DEVX_HOME
385385
386+
# Set TERM=dumb if not already set so tput and other
387+
# ncurses tools don't fail in CI/container environments.
388+
export TERM="''${TERM:-dumb}"
389+
386390
# Shell hook from mkShell
387391
${shellHook}
388392

0 commit comments

Comments
 (0)