@@ -423,7 +423,7 @@ def prune_app_directory(self):
423
423
remove_unused_node_modules (app_path )
424
424
425
425
426
- def coerce_url_to_name_if_possible (git_url : str , cache_key :str ) -> str :
426
+ def coerce_url_to_name_if_possible (git_url : str , cache_key : str ) -> str :
427
427
app_name = os .path .basename (git_url )
428
428
if can_get_cached (app_name , cache_key ):
429
429
return app_name
@@ -435,7 +435,7 @@ def can_get_cached(app_name: str, cache_key: str) -> bool:
435
435
Used before App is initialized if passed `git_url` is a
436
436
file URL as opposed to the app name.
437
437
438
- If True then `git_url` can be coerced into the `app_name` and
438
+ If True then `git_url` can be coerced into the `app_name` and
439
439
checking local remote and fetching can be skipped while keeping
440
440
get-app command params the same.
441
441
"""
@@ -671,7 +671,7 @@ def get_app(
671
671
import bench .cli as bench_cli
672
672
from bench .bench import Bench
673
673
from bench .utils .app import check_existing_dir
674
-
674
+
675
675
if urlparse (git_url ).scheme == "file" and cache_key :
676
676
git_url = coerce_url_to_name_if_possible (git_url , cache_key )
677
677
@@ -908,7 +908,9 @@ def install_app(
908
908
install_python_dev_dependencies (apps = app , bench_path = bench_path , verbose = verbose )
909
909
910
910
if not using_cached and os .path .exists (os .path .join (app_path , "package.json" )):
911
- yarn_install = "yarn install --verbose" if verbose else "yarn install"
911
+ yarn_install = "yarn install --check-files"
912
+ if verbose :
913
+ yarn_install += " --verbose"
912
914
bench .run (yarn_install , cwd = app_path )
913
915
914
916
bench .apps .sync (app_name = app , required = resolution , branch = tag , app_dir = app_path )
0 commit comments