Open orhun opened 1 month ago
Thanks for the report. That's weird, I can't repro on my (MacOS) machine; are you using the version from a github release, or installed from cargo, or building from a specific git hash?
Thanks for the details; unfortunately I can't reproduce on my machine. If anyone can reproduce and track the test failure, that would be greatly appreciated 🙏
Maybe you can tell me what that test is doing, how is it being run and why it might fail. Then I can dig into it a bit :)
The test checks collect_paths
, which has options to ignore target directories (first assertion), or to ignore files mentioned in ignore files (second assertion, where there's /target
in ./integration-tests/with-target/target/program/.gitignore
), or that when none of these is enabled, we do find some entries.
If the .gitignore
file is missing from the archive you're downloading, I could see that test failing. Otherwise it's not clear why it's not failing: is the .gitignore
file found? is it then not ignored, or interpreting /target
as a different path than ./integration-tests/with-target/target/
?
Okay I found the culprit. The downloaded archive from GitHub is not a git repository (does not contain .git
folder) so I'm guessing the underlying library does not take .gitignore
into account in that case.
The test passes when I rename .gitignore
to .ignore
🫠
Thanks for the investigation! I think we could rename .gitignore
to .ignore
and not lose any testing coverage, since this is testing that any kind of ignore files is taken into account. Thoughts?
Yup, sounds good to me 👍🏼
Hey, I'm getting the following test failure while building the latest version for Arch Linux (in a clean chroot):
Do I need any preparation before running the tests? Any ideas about it? 🤔
As a workaround I currently
--skip
this test in the package.