-
Notifications
You must be signed in to change notification settings - Fork 99
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
verifying Ruby 3.1 compatibility on Windows #325
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: John McCrae <john.mccrae@progress.com>
The problem is that chef-zero calls "pedant" from chef server. It in turn has a method called gen_rsa_key that was supposed to create the keys that are throwing the missing file errors on Windows. I just pushed a PR to Server that fixed that - chef/chef-server#3269 |
@@ -0,0 +1,17 @@ | |||
# Stop script execution when a non-terminating error occurs | |||
$ErrorActionPreference = "Stop" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my testing yesterday wehn this is set to 'Stop', we don't have to check $lastexitcode
- the script will exit on non-zero return code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, optionally can remove the lastexitcode checks (see comment)
Kudos, SonarCloud Quality Gate passed! |
Signed-off-by: John McCrae john.mccrae@progress.com
Description
Related Issue
Types of changes
Checklist: