Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Curl version 8.11.0 has a bug that causes it to fail to parse .netrc files correctly, particularly the fallback mechanism for ~/_netrc . This can lead to authentication failures with GitHub.
Error :
curl --version
| /opt/chef-workstation/gitbin/git config -l
| /opt/chef-workstation/gitbin/git clone https://github.com/chef/license-acceptance
| #<Thread:0x00007f39c55d0268 /var/lib/buildkite-agent/builds/omnibus-debian-10-x86-64-chef-i-0693816ae30139bf3-1/chef/chef-chef-workstation-main-omnibus-adhoc/om
| nibus/verification/verify.rb:447 run> terminated with exception (report_on_exception is true):
| /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/mixlib-shellout-3.3.6/lib/mixlib/shellout.rb:300:in `invalid!': Expected process to exit with [0], but r
| eceived '128' (Mixlib::ShellOut::ShellCommandFailed)
| ---- Begin output of /opt/chef-workstation/gitbin/git clone https://github.com/chef/license-acceptance ----
| STDOUT:
| STDERR: Cloning into 'license-acceptance'...
| fatal: unable to access 'https://github.com/chef/license-acceptance/': .netrc parser error
| ---- End output of /opt/chef-workstation/gitbin/git clone https://github.com/chef/license-acceptance ----
Resolution: Upgrade to curl 8.11.1 or later.
Link to curl 8.11.0 issue : curl/curl#15734
=================
The pipeline was failing due to a version incompatibility between mixlib-log and the Ruby version used in the pipeline. mixlib-log-3.2.0 requires Ruby version >= 3.1, while the pipeline was running with Ruby 3.0.7p220. This update upgrades the Ruby version to meet the minimum requirement of mixlib-log, resolving the error.
Hence running on ruby>= 3.1.
Related Issue
Types of changes
Checklist:
Gemfile.lock
has changed, I have used--conservative
to do it and included the full output in the Description above.