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.
2 parents 2d8a208 + 5984a36 commit d9337faCopy full SHA for d9337fa
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