Skip to content

Commit 05616a2

Browse files
committed
Fix: wrong ignored metadata files of *archetype-catalog.xml
1 parent caa7e95 commit 05616a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charon/pkgs/maven.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ def __hash_decorate_metadata(path: str, metadata: str) -> List[str]:
924924

925925
def _is_ignored(filename: str, ignore_patterns: List[str]) -> bool:
926926
for ignored_name in STANDARD_GENERATED_IGNORES:
927-
if ignored_name in filename:
927+
if filename and filename.startswith(ignored_name.strip()):
928928
logger.warning("Ignoring standard generated Maven path: %s", filename)
929929
return True
930930

0 commit comments

Comments
 (0)