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

Upgrade curl - 8.11.x #1958

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Upgrade curl - 8.11.x #1958

wants to merge 2 commits into from

Conversation

poorndm
Copy link
Collaborator

@poorndm poorndm commented Feb 17, 2025

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • If Gemfile.lock has changed, I have used --conservative to do it and included the full output in the Description above.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

Signed-off-by: poorndm <poorndm@progress.com>
Signed-off-by: poorndm <poorndm@progress.com>
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.

1 participant