added dotenv and using to know if we need to

return mock build handler
This commit is contained in:
Karma Riuk
2025-05-19 09:41:20 +02:00
parent 15bf917e66
commit 1c74dad3ea
3 changed files with 7 additions and 1 deletions

View File

@ -633,7 +633,8 @@ def get_build_handler(root: str, repo: str, verbose: bool = False) -> BuildHandl
an instance of GradleHandler or MavenHandler
"""
path = os.path.join(root, repo)
return WaitBuildHander("NO REPO PATH", "NO BUILD FILE", {})
if os.getenv('MOCK_BUILD_HANDLER', False):
return WaitBuildHander("NO REPO PATH", "NO BUILD FILE", {})
# 1) If it's a tarball, extract it
if os.path.isfile(path) and tarfile.is_tarfile(path):