Browse Source

feat: add a warning if someone uses the --compress or --parallel flag

Signed-off-by: Nao YONASHIRO <[email protected]>
Nao YONASHIRO 6 years ago
parent
commit
15e8edca3c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      compose/project.py

+ 4 - 0
compose/project.py

@@ -367,6 +367,10 @@ class Project(object):
 
         if cli:
             log.warning("Native build is an experimental feature and could change at any time")
+            if parallel_build:
+                log.warning("unavailable --parallel on COMPOSE_NATIVE_BUILDER=1")
+            if gzip:
+                log.warning("unavailable --compress on COMPOSE_NATIVE_BUILDER=1")
 
         def build_service(service):
             service.build(no_cache, pull, force_rm, memory, build_args, gzip, rm, silent, cli, progress)