Skip to content

Commit

Permalink
chore: add a log message when the input python venv has multiple pyth…
Browse files Browse the repository at this point in the history
…on3.* directories
  • Loading branch information
tromai committed Dec 11, 2024
1 parent e2c0236 commit 65c9014
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/macaron/slsa_analyzer/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,11 @@ def _get_local_artifact_repo_mapper() -> Mapping[str, str]:

if len(site_packages_dirs) == 1:
local_artifact_mapper["pypi"] = site_packages_dirs.pop()
else:
logger.info(
"There are multiple python3.* directories in the input Python venv. "
+ "This venv will NOT be used for local artifact findings."
)

return local_artifact_mapper

Expand Down

0 comments on commit 65c9014

Please sign in to comment.