-
-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specifying the AutomatedLab Version to Install #1391
Comments
Indeed, this is a very old issue that is because of the module design. @nyanhp, are we setting the module version for
What we could do is setting the version numbers for all the modules in the build process so that not the latest but a specific version should be downloaded from the PowerShell Gallery. @shurick81, would that help? |
I guess so @raandree. As far as I understand, I will be able to run one installation command and specify the version of the AutomatedLab module to install and then all the AutomatedLab* modules will be installed with the same version, right? |
That is a manual task, but there is no reason why we couldn't automate this in the pipeline. |
@shurick81, the only workaround is the script you added when opening this problem. If you install only the main module All this is not ideal and, as mentioned, is due to the module design. The design is from 2014 when we all didn`t have that much experience. We would definitely choose something completely different now. I had a discussion with @nyanhp recently and redesigning the whole solution would be a nice thing to do, albeit extremely time consuming. Considering that this is the first time this issue has come up since 2014 and that there is a workaround and that we are thinking about redesigning the solution in the future, I don't want to put time and energy into a quick fix that still would cost us a couple of hours. |
Description
When I install one of the previous versions of AutomatedLab, not the latest available in Gallery, 5.43.0, I get inconsistent set of module versions installed. For example, I get installed AutomatedLab 5.43.0 but AutomatedLabDefinition 5.45.0. One issue with that is that I don't know if such combination is even supported by AutomatedLab team. Another issue is that I want my installation script to bring the system to the same state now and every time I run it in the future regardless of whether new versions of AutomatedLab are released or not. For repeatability purposes.
This might be related but it does not solve the issue as far as I can see: #679
Here's what I use for the workaround:
Expected behavior
When I run
Install-Module -Name AutomatedLab -RequiredVersion 5.43.0
, I expect these versions to be installed:Actual behavior
Steps to reproduce
Environment details
powershell_support_pack_2022_09_04-12_32_28.zip
PowerShell Version
AutomatedLab components
The text was updated successfully, but these errors were encountered: