Fix path flattening collisions and make runfiles resolution deterministic in make_corpus_dir#290
Conversation
e2e4d68 to
c328a1a
Compare
|
Hi @fmeum, @simonresch Can you kindly review this PR. Thank you! |
|
The only caller of Could you make sure the added test passes? You can run it with the command |
c328a1a to
1f192bc
Compare
…stic in make_corpus_dir
1f192bc to
a88084a
Compare
|
@simonresch. I've narrowed the change and updated the tests to focus on a reachable collision in the current flattening logic. For example:
Both currently flatten to The updated tests exercise the real |
Summary
Fixes path flattening collisions and makes runfiles resolution deterministic in
make_corpus_dir.Problem
dir/../a.txtvsa.txt,./a.txtvsdot-a.txt)Solution
_mainonly as fallbackResult
Tests
TEST_SRCDIRRUNFILES_DIRRUNFILES_MANIFEST_FILE