We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
src_path
1 parent 2d8a208 commit 5984a36Copy full SHA for 5984a36
onlinejudge_verify/languages/rust.py
@@ -363,7 +363,8 @@ def _find_target(
363
for package in metadata['packages']:
364
for target in package['targets']:
365
# A `src_path` may contain `..`
366
- if pathlib.Path(target['src_path']).resolve(strict=True) == src_path:
+ # The path may not actually exist by being excluded from the package.
367
+ if pathlib.Path(target['src_path']).resolve() == src_path:
368
return package, target
369
return None
370
0 commit comments