We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aec9c9c + fb67992 commit 90b011bCopy full SHA for 90b011b
1 file changed
src/fromager/sources.py
@@ -865,6 +865,10 @@ def scan_compiled_extensions(
865
logger.debug("file %s has a binary extension suffix", relpath)
866
issues.append(relpath)
867
elif suffix not in ignore_suffixes:
868
+ # Path.walk() lists symlinks to directories as filenames
869
+ # rather than dirnames, causing IsADirectoryError on open().
870
+ if not filepath.is_file():
871
+ continue
872
with filepath.open("rb") as f:
873
header = f.read(_MAGIC_HEADERS_READ)
874
if header.startswith(magic_headers):
0 commit comments