Skip to content
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

Clean up old PowerShell code #206

Merged
merged 2 commits into from
Aug 9, 2023

Conversation

RytoEX
Copy link
Member

@RytoEX RytoEX commented Aug 7, 2023

Description

Remove code branches that handled versions of PowerShell older than PowerShell 7.0 (such as PowerShell 5.x and 6.x, or Desktop vs. Core). Increase the minimum required PowerShell version from 7.0 to 7.2 since 7.0 is no longer supported.

Motivation and Context

PowerShell 7.2 is the currently supported LTS version of PowerShell and is available on all GitHub Actions runner images. Let's shed a tiny bit of code that we don't need anymore.

How Has This Been Tested?

Tested locally on Windows 11.

Types of changes

  • Code cleanup (non-breaking change which makes code smaller or more readable)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

PowerShell 7.0 has not been supported by Microsoft since December 2022.
GitHub Actions uses PowerShell 7.2, and we do not recommend anything
older than that. Let's enforce that recommendation with the runtime
version check.
The main build script has required PowerShell 7 for some time now, and
it will exit early without it, so we no longer need to handle cases for
older versions such as PowerShell 5 or 6.
@RytoEX RytoEX requested a review from PatTheMav August 7, 2023 23:50
@RytoEX RytoEX merged commit 536c7b0 into obsproject:master Aug 9, 2023
22 checks passed
@RytoEX RytoEX deleted the cleanup-old-powershell-code branch August 9, 2023 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants