Errors during installation
Closed this issue · 2 comments
V1ad0S commented
I tried to install using cargo
. At the final stage of compilation I get this
Compiling settle v0.36.3 (/home/vladislav/Desktop/settle)
error: environment variable `XDG_CONFIG_HOME` not defined
--> src/config.rs:49:27
|
49 | let xdg_cfg_dir = env!("XDG_CONFIG_HOME");
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)
error: environment variable `XDG_CONFIG_HOME` not defined
--> src/config.rs:55:47
|
55 | format!( "{}/settle/settle.yaml", env!("XDG_CONFIG_HOME"))
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)
error: could not compile `settle` due to 2 previous errors
xylous commented
The bodge for now is to define XDG_CONFIG_HOME
, e.g. to ${HOME}/.config
I'll work on a permanent fix when I have the time, later today.
xylous commented
Alright, the fix was rather simple. v0.36.4 fixes this bug; you should be able to download it from crates.io now.