-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[All OSes] Powershell Core will be updated to 7.4.x LTS on January, 28 #9115
Comments
As part of this work package can I please ask for the following additional enhancements as this would greatly benefit the community and has previously been asked for by myself & generally makes sense to enable this pattern not only for PowerShell but other tooling too to reduce unnecessary and painful custom pre-execution scripts or custom tasks to enable more flexible testing matrixes that are much needed going forward.
Without any of those settings being set it should still default to using the latest LTS release as planned |
@kilasuit Once 7.5 comes out, having the latest stable as an option makes sense, and would be in line with other tools. I would think anything beyond that would be a matter for a tool installer task, no? |
Which I expect is already the task used for installing PowerShell on the images in the first place, which as part of this work package would need to be updated anyway, to use the latest version, so I don't see why asking for that task to be updated in such a way that when you then try call PowerShell as an action in your workflow with additional flags asked above is too much of an ask here. This would allow in my mind for something like the below to be viable & nice and clean in GitHub/Azure DevOps yaml files GitHub
Azure DevOps
and then that way this tells the runner to check for and if not installed, install the specified version to the runner as a setup task which would run prior to running that step and then use the referenced version for that step. This may increase size of runner images over time as well as in some cases make a build a little slower, but eventually this'll help make management & maintenance easier for both cloud hosted and self hosted runners, even if it is a stretch goal in asking for it, but would be good to see happen |
For anyone hitting the same issue, this upgrade in powershell version brings the following breaking change around The fix (which will work with both old and new pwsh) is to use splatting (see example in that thread). |
* Manually fail for Windows RLang tests actions/runner-images#6668 * Quoting changes in Powershell 7.4 actions/runner-images#9115
Deployed |
Breaking changes
Powershell Core on all runners will be switched from the 7.2.x LTS branch to the 7.4.x LTS one. The description of the changes can be found on Microsoft learn and in the dev blog.
Target date
The images rollout process will start on January 28 and take 3-4 days.
The motivation for the changes
According to the support lifecycle the 7.2.x branch will have reached its end of life by November, 8 this year and we would like to provide the latest LTS versions.
Possible impact
We do not expect any major breakages, though we highly recommend study all the changelogs from the links above to avoid unexpected behaviour.
Platforms affected
Runner images affected
Mitigation ways
Here are the runtime downgrade paths if 7.2.x is still needed:
Windows:
Linux:
macOS:
The text was updated successfully, but these errors were encountered: