XAMPPRocky/fluent-templates

ArcLoader won't work without a top level directory

Open

#41 opened on 2023年2月16日

GitHub で見る
 (3 comments) (0 reactions) (0 assignees)Rust (38 forks)auto 404
buggood first issuehelp wanted

Repository metrics

Stars
 (167 stars)
PR merge metrics
 (PR metrics pending)

説明

I spent a while trying to figure out why I was only getting panics trying to follow examples from the docs. I finally narrowed it down to this bit of code:

https://github.com/XAMPPRocky/fluent-templates/blob/66f53a7fc1e165012897861888647f75765a1d50/tests/template.rs#L21

The path from this test tests/locales from the test and examples works, but using "./" or any other iteration I can think of to use $CWD to look for resources ends in a panic.

コントリビューターガイド