Observed with ocp-indent version 1.8.0 (from opam with OCaml 4.08.1).
The man page states that the configuration file will be lookup up at the following locations, in order:
.ocp-indent in the current directory or one of its ancestors, recursively
$XDG_CONFIG_HOME/ocp/ocp-indent.conf
$HOME/.ocp/ocp-indent.conf
$OCP_INDENT_CONFIG
But apparently, even when $XDG_CONFIG_HOME/ocp (or when the variable is unset, ~/.config/ocp) does not exist, the two options that come after are not read at all. This means that the legacy location does not work anymore, nor does overriding with an environment variable.
The expected behavior would be to check that a location exists and, if it doesn’t, try latter locations.
This regression is presumably a consequence of the patch #296 which added support for the XDG specification.
Observed with ocp-indent version 1.8.0 (from opam with OCaml 4.08.1).
The man page states that the configuration file will be lookup up at the following locations, in order:
.ocp-indent
in the current directory or one of its ancestors, recursively$XDG_CONFIG_HOME/ocp/ocp-indent.conf
$HOME/.ocp/ocp-indent.conf
$OCP_INDENT_CONFIG
But apparently, even when
$XDG_CONFIG_HOME/ocp
(or when the variable is unset,~/.config/ocp
) does not exist, the two options that come after are not read at all. This means that the legacy location does not work anymore, nor does overriding with an environment variable.The expected behavior would be to check that a location exists and, if it doesn’t, try latter locations.
This regression is presumably a consequence of the patch #296 which added support for the XDG specification.