Fix external tool file copy to include sub directories, fix #843 - #845
Conversation
Codecov Report
@@ Coverage Diff @@
## master #845 +/- ##
=======================================
Coverage 47.07% 47.08%
=======================================
Files 146 146
Lines 59493 59500 +7
=======================================
+ Hits 28008 28014 +6
- Misses 31485 31486 +1
Continue to review full report at Codecov.
|
|
Thanks for your submission! I'm always glad to see people be willing to try writing their own Rust code for the first time — I appreciate that there's a learning curve to it! In terms of the Rust style, your code looks great. I can think of a couple of things to check but they're not specific to Rust:
There are several things flagged by the CI:
|
Finding a solution to this without limiting the implementation proves to be a bit of a challenge. Technically, I could disallow or drop any relative parent (i.e.
Maybe there exists some parameter for biber to help in this process, but I haven't looked in the documentation yet. What do you think is the best course of action? |
|
At this point, I have implemented the last option. If a relative path references I'll have to check if this works properly on Windows too, but I need to setup an environment for that first. |
|
Seems I need to fix my formatting. Clippy is also complaining again about something unrelated. Should I go and fix that too? |
|
If you don't mind, for this latest Clippy issue I think it would be best to add an As for the formatting, yes, the CI requires that all code match the standard I hope to take another look at your code changes soon but several work things have come up that will probably keep me pretty busy for a little while, so I'm afraid I may not be as prompt as I'd like to follow up. |
|
Wow, I added the annotation and ran the same I will still be working on the same project for the coming few weeks, so it is no problem for me if the follow-up takes a while. |
|
This looks great now! Because the Windows builds are busted, the usual continuous deployment processes won't run when I merge this, but I'll work on getting those fixed up ASAP. Thanks so much for your contribution! |
|
Awesome! I'm glad I could contribute to this project! Also, many thanks for your guidance and input! It has been a great learning experience. |
Fixes files used for external tools not being copied if they are located in sub directories (#843). This is done by checking the file directory against the temp directory. If they do not match,
std::fs::create_dir_all()is used to create the directory structure for the file.I would love to get some feedback on this implementation. Is it a decent implementation?, is it "rust-like"?, what can I change?, et cetera. It is my first time writing some rust, so I have no clue ;).