Conservative dependency resolution #351
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces new module to be used for all install/import operations in AVS.
The Problem
PowerCLI 13.4 breaks backward compatibility and cannot be used side-by-side with packages depending on 13.3 or bellow.
At the same time the dependency specifications in the PowerCLI modules are overly open (at best specified as >= and at worst - not at all) and will try to install/import the latest, and in this case incompatible, versions and fail.
The solution
The install/import commandlets in this module will assume that only the version actually referenced is compatible with current module and will apply this logic recursively to each dependency chain.
Additional redirect map support is included for cases when dependency specification has no version at all or references invalid/non-existing version to address specific scenarios.
Information for AVS partners
Use this module in your own testing to match the behavior of AVS.