2.home-manager/home-manager
Dennis Schridde 36349274d7 home-manager: Prevent pipe failure when reading news
On my system (Fedora 43 with Nix 2.31.3) `home-manager news` exits
from `SIGPIPE` and never writes `~/.local/share/home-manager/news-read-ids`,
resulting in news items to never be marked read.  This is caused by
piping `(import ./news.nix).news.all` through `jq` and `less` failing
with an error as soon as `less` exits, which triggers `set -o pipefail`
to exit the shell running `home-manager` itself.

Avoiding the pipe into `$PAGER` avoids the problem.

Closes: https://github.com/nix-community/home-manager/issues/8690
References: https://github.com/jqlang/jq/issues/1017
References: https://www.greenend.org.uk/rjk/tech/shellmistakes.html#pipeerrors
2026-02-03 18:14:58 -06:00
..
po Translate using Weblate (Portuguese) 2026-01-31 16:22:15 +01:00
build-news.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
completion.bash home-manager: add autocomplete for --log-format 2025-03-19 13:32:33 -05:00
completion.fish home-manager: add autocomplete for --log-format 2025-03-19 13:32:33 -05:00
completion.zsh home-manager: add autocomplete for --log-format 2025-03-19 13:32:33 -05:00
default.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
home-manager home-manager: Prevent pipe failure when reading news 2026-02-03 18:14:58 -06:00
home-manager.nix home-manager: add repl subcommand (#5600) 2025-06-29 18:12:33 -05:00
install.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00