Fix resolve_component_dependencies in single-file bundles (#40780)
authorVitek Karas <vitek.karas@microsoft.com>
Fri, 14 Aug 2020 18:45:19 +0000 (11:45 -0700)
committerGitHub <noreply@github.com>
Fri, 14 Aug 2020 18:45:19 +0000 (11:45 -0700)
commit53e65e04ea5605eb268020e639c8e5eed42b9f20
tree6ff6acc218e45ce97e70459a0c92871e748c42ba
parentac492c9523092d4d8c1c97979c986524bf42ee70
Fix resolve_component_dependencies in single-file bundles (#40780)

`hostpolicy_resolve_component_dependencies` uses the same infrastructure in the host as when an application is started. Changes made to the host to support .NET 5 single-file modifies some of the code paths shared with the component dependency resolution and broke it.

When doing component dependency resolution the host must not consider the bundle in any way - all lookups have to go directly against the file system. This change modifies the initialization path to obey this rule.
src/installer/corehost/cli/hostpolicy/args.cpp
src/installer/corehost/cli/hostpolicy/args.h
src/installer/corehost/cli/hostpolicy/hostpolicy.cpp