Skip to content

Commit b45c5d7

Browse files
committed
Merge pull request #146 from ligangty/release
Fix: wrong ignored metadata files of *-archetype-catalog.xml
1 parent 066e219 commit b45c5d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charon/pkgs/maven.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ def __hash_decorate_metadata(path: str, metadata: str) -> List[str]:
992992

993993
def _is_ignored(filename: str, ignore_patterns: List[str]) -> bool:
994994
for ignored_name in STANDARD_GENERATED_IGNORES:
995-
if ignored_name in filename:
995+
if filename and filename.startswith(ignored_name.strip()):
996996
logger.info("Ignoring standard generated Maven path: %s", filename)
997997
return True
998998

0 commit comments

Comments
 (0)