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

(#2754) Add support for detecting newer Windows versions #2755

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

TheCakeIsNaOH
Copy link
Member

@TheCakeIsNaOH TheCakeIsNaOH commented Jun 30, 2022

Description Of Changes

This allows Chocolatey CLI to detect Windows 11, Server 2019 and Server 2022.
Which will allow the OS_NAME environment variable to be set correctly on those
operating systems.

Motivation and Context

See #2754

Testing

N/A

Change Types Made

  • Bug fix (non-breaking change)
  • Feature / Enhancement (non-breaking change)
  • Breaking change (fix or feature that could cause existing functionality to change)
  • PowerShell code changes.

Related Issue

Fixes #2754

Change Checklist

  • Requires a change to the documentation
  • Documentation has been updated
  • Tests to cover my changes, have been added
  • All new and existing tests passed.
  • PowerShell v2 compatibility checked.

@coveralls
Copy link

coveralls commented Jun 30, 2022

Coverage Status

Coverage decreased (-0.007%) to 27.574% when pulling 70296c4 on TheCakeIsNaOH:platform-name into d08d1f6 on chocolatey:develop.

This allows Chocolatey CLI to detect Windows 11, Server 2019 and Server 2022.
Which will allow the OS_NAME environment variable to be set correctly on those
operating systems.
Copy link
Member

@gep13 gep13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@gep13
Copy link
Member

gep13 commented Apr 24, 2024

@TheCakeIsNaOH I have taken this for a spin across 5 different VM's and happy to say that this is working as expected! Thank you very much for getting this done!

@gep13 gep13 merged commit 03126a9 into chocolatey:develop Apr 24, 2024
5 checks passed
@TheCakeIsNaOH TheCakeIsNaOH deleted the platform-name branch April 26, 2024 03:56
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.

Update OS_NAME environment variable to support Windows 11 and Server 2019/2022
3 participants