You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Topiary's logging attempts to output the name of the configuration file -- with -vv (or higher) -- and the configuration file is not a regular file, then it panics. Here:
By "not a regular file" I mean, for example, via process substitution:
$ topiary config -vvC <(cat topiary-config/languages.ncl)[2025-01-03T16:52:08Z INFO topiary_config::source] Could not find configuration file: /home/chris/.config/topiary. Defaulting to built-in configuration.thread 'main' panicked at topiary-config/src/source.rs:129:53:called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Using process substitution like this is a good way to create a quick-and-dirty self-contained wrapper script. While this is not something that should be encouraged, Topiary shouldn't crash in this case (or, at least, the error message should be more instructive).
The text was updated successfully, but these errors were encountered:
When Topiary's logging attempts to output the name of the configuration file -- with
-vv
(or higher) -- and the configuration file is not a regular file, then it panics. Here:topiary/topiary-config/src/source.rs
Lines 126 to 130 in f35eee4
By "not a regular file" I mean, for example, via process substitution:
Using process substitution like this is a good way to create a quick-and-dirty self-contained wrapper script. While this is not something that should be encouraged, Topiary shouldn't crash in this case (or, at least, the error message should be more instructive).
The text was updated successfully, but these errors were encountered: