Skip to content

Commit 8896bda

Browse files
committed
Fix to use AtCoder Library
AtCoder Library uses C++ files like `atcoder/dsu`. It's listed as a dependency of files, but it doesn't have `.hpp` or `.cpp` extension and is not recognized as a source code file. An error happened due to this mismatch. This commit fixes this.
1 parent eb01179 commit 8896bda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

onlinejudge_verify/documentation/configure.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ def _build_dependency_graph(paths: List[pathlib.Path], *, basedir: pathlib.Path)
7878
relative_dst = absolute_dst.relative_to(basedir)
7979
if absolute_src == absolute_dst:
8080
continue
81+
if absolute_dst not in depends_on:
82+
logger.debug("The file `%s` which is depended from `%s` is ignored because it's not listed as a source code file.", relative_dst, relative_src)
83+
continue
8184

8285
depends_on[absolute_src].append(relative_dst)
8386
if utils.is_verification_file(src, basedir=basedir):

0 commit comments

Comments
 (0)