ghcup's support of HLS broke CI
My CI would build new docker images when the dockerfile changed. Recent ghcup changed its behavior to require user input where previously none was needed:
#37 98.68 [0;35mDo you want to install haskell-language-server (HLS) now?[0m
#37 98.68 [0;35mHLS is a language-server that provides IDE-like functionality[0m
#37 98.68 [0;35mand can integrate with different editors, such as Vim, Emacs, VS Code, Atom, ...[0m
#37 98.68 [0;35mAlso see https://github.com/haskell/haskell-language-server/blob/master/README.md[0m
#37 98.68 [0;35m[0m
#37 98.68 [0;35mAnswer with YES or NO and press ENTER.[0m
#37 98.68 [0;35m[0m
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 sh: 202: cannot open /dev/tty: No such device or address
#37 98.68 Please type YES or NO and press enter.
#37 98.68 Please type YES or NO and press enter.
#37 98.68 Please type YES or NO and press enter.
#37 98.68 Please type YES or NO and press enter.
#37 98.68 Please type YES or NO and press enter.
#37 98.68 Please type YES or NO and press enter.
#37 98.68 Please type YES or NO and press enter.
#37 98.68 Please type YES or NO and press enter.
#37 98.68 Please type YES or NO and press enter.
#37 98.68 Please type YES or NO and press enter.
#37 98.68 Please type YES or NO and press enter.
Ideally this behavior would first detect if there is a tty, or if not then off by default, or if not then a flag. Are one of these options on the table?