@@ -100,6 +100,7 @@ def get_config(path):
100
100
build_cfg = load_manifest (config_path )
101
101
if build_cfg is not None :
102
102
return build_cfg
103
+ logger .warning ("Failed to locate config file." )
103
104
return None
104
105
105
106
@@ -820,10 +821,14 @@ def cli_plugin():
820
821
help = 'Max number of cores to use during build (1)' ,
821
822
)
822
823
def cli_plugin_build (path , output , dotnet_configuration , dotnet_framework , max_cpu_count , version ):
824
+ build_cfg = get_config (path )
825
+ if build_cfg is None :
826
+ raise click .UsageError ('No build config found in `{}`' .format (path ))
827
+
823
828
with tempfile .TemporaryDirectory () as bintemp :
824
- build_plugin (path , output = bintemp , dotnet_config = dotnet_configuration , dotnet_framework = dotnet_framework ,
829
+ build_plugin (path , output = bintemp , build_cfg = build_cfg , dotnet_config = dotnet_configuration , dotnet_framework = dotnet_framework ,
825
830
version = version , max_cpu_count = max_cpu_count )
826
- filename = package_plugin (path , version = version , binary_path = bintemp , output = output )
831
+ filename = package_plugin (path , build_cfg = build_cfg , version = version , binary_path = bintemp , output = output )
827
832
click .echo (filename )
828
833
829
834
0 commit comments