mirror of
https://github.com/inventree/InvenTree.git
synced 2025-09-13 06:01:35 +00:00
fix: The function should return early when in Docker environment (#10178)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com> Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
2
tasks.py
2
tasks.py
@@ -223,7 +223,7 @@ def envcheck_invoke_cmd():
|
||||
|
||||
correct_cmd: Optional[str] = None
|
||||
if is_rtd_environment() or is_docker_environment() or is_devcontainer_environment():
|
||||
pass
|
||||
return # Skip invoke command check for Docker/RTD/DevContainer environments
|
||||
elif is_pkg_installer(load_content=True) and not is_pkg_installer_by_path():
|
||||
correct_cmd = 'inventree run invoke'
|
||||
else:
|
||||
|
Reference in New Issue
Block a user