diff --git a/src/AppInstallerCLICore/Workflows/DependenciesFlow.cpp b/src/AppInstallerCLICore/Workflows/DependenciesFlow.cpp index 4f7f2537c0..3ccfd294ad 100644 --- a/src/AppInstallerCLICore/Workflows/DependenciesFlow.cpp +++ b/src/AppInstallerCLICore/Workflows/DependenciesFlow.cpp @@ -240,6 +240,11 @@ namespace AppInstaller::CLI::Workflow void CreateDependencySubContexts::operator()(Execution::Context& context) const { + if (context.Args.Contains(Execution::Args::Type::SkipDependencies)) + { + return; + } + auto info = context.Reporter.Info(); auto error = context.Reporter.Error(); const auto& rootManifest = context.Get(); @@ -249,9 +254,9 @@ namespace AppInstaller::CLI::Workflow const auto& rootInstaller = context.Get(); const auto& rootDependencies = rootInstaller->Dependencies; - if (rootDependencies.Empty() || context.Args.Contains(Execution::Args::Type::SkipDependencies)) + if (rootDependencies.Empty()) { - // If there's no dependencies or user skips them, there's nothing to do aside of logging the outcome + // If there's no dependencies, there's nothing to do aside of logging the outcome return; }