`hostname -f` could fail depending on the resolver. Discard any stderr and test for the exit status before using the value for flake attribute lookup. I was unable to repro the exact bad exit status in #5665. With - nscd disabled, - nsswitch.conf pointing to 'files', - hostname entry removed from /etc/hosts `hostname -f` from inetutils-2.5 fell back to showing just the nodename from `uname(2)`. Injecting an empty string into the `(struct utsname).nodename` field of `uname(2)` using strace still exited with empty output and 0 exit-status. Fixes #5665 |
||
|---|---|---|
| .. | ||
| po | ||
| build-news.nix | ||
| completion.bash | ||
| completion.fish | ||
| completion.zsh | ||
| default.nix | ||
| home-manager | ||
| home-manager.nix | ||
| install.nix | ||