XAMPPRocky/fluent-templates

ArcLoader won't work without a top level directory

Open

#41 创建于 2023年2月16日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Rust (38 fork)auto 404
buggood first issuehelp wanted

仓库指标

Star
 (167 star)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南