.oxymodules: a watch list spread over several lines is cut to its first line issue #200
closed: completed andymccall opened this · 0 comments
andymccall
Diffusion's .oxymodules reader (module_keys in crates/hub/src/diffusion.rs) reads one line at a time, so a TOML list spanning lines (watch = ["a",\n "b"]) keeps only the first pattern and ignores the rest silently. Read a list until its closing ], and report a malformed entry (such as an unterminated quote) instead of dropping it. oxy's own parser (oxy-core subrepo.rs) skips the extra lines the same way; check it too. Found in trailblazers/.oxymodules. Workaround: put the list on one line.
Diffusion's .oxymodules reader (module_keys in crates/hub/src/diffusion.rs) reads one line at a time, so a TOML list spanning lines (watch = ["a",\n "b"]) keeps only the first pattern and ignores the rest silently. Read a list until its closing ], and report a malformed entry (such as an unterminated quote) instead of dropping it. oxy's own parser (oxy-core subrepo.rs) skips the extra lines the same way; check it too. Found in trailblazers/.oxymodules. Workaround: put the list on one line.