fluxcd-flux2/cmd
Rafael Peroco 566bbe6e00 fix: return clear error when --private-key-file path starts with '~'
The tilde character is expanded by the shell, not by the Flux CLI, so
paths like ~/.ssh/id_ecdsa passed with =value syntax were opened
verbatim and failed with a confusing "no such file or directory" error.
Detect the leading '~' up front and surface a message pointing users at
absolute paths or $HOME instead. Fixes #5591.

Signed-off-by: Rafael Peroco <rafaelperoco@gmail.com>
2026-04-21 16:38:34 -03:00
..
flux fix: return clear error when --private-key-file path starts with '~' 2026-04-21 16:38:34 -03:00