Skip to content

Commit

Permalink
Skip dependency evaluation with --skip-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mdanish-kh committed Oct 18, 2023
1 parent 68af39b commit c33686e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AppInstallerCLICore/Workflows/DependenciesFlow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ namespace AppInstaller::CLI::Workflow
const auto& rootInstaller = context.Get<Execution::Data::Installer>();
const auto& rootDependencies = rootInstaller->Dependencies;

if (rootDependencies.Empty())
if (rootDependencies.Empty() || context.Args.Contains(Execution::Args::Type::SkipDependencies))
{
// If there's no dependencies there's nothing to do aside of logging the outcome
// If there's no dependencies or user skips them, there's nothing to do aside of logging the outcome
return;
}

Expand Down

0 comments on commit c33686e

Please sign in to comment.