Skip to content

Try pinning to 0.10.1 if Ruby 3.0.0 specifically is in use (for Fedora rubydistro)#14212

Merged
johnmccrae merged 3 commits intochef-17from
tp/fedora-fix
Jan 30, 2024
Merged

Try pinning to 0.10.1 if Ruby 3.0.0 specifically is in use (for Fedora rubydistro)#14212
johnmccrae merged 3 commits intochef-17from
tp/fedora-fix

Conversation

@tpowell-progress
Copy link
Copy Markdown
Contributor

@tpowell-progress tpowell-progress commented Jan 29, 2024

Description

Tweak the knife.gemspec to prevent Fedora 3.0.0 Unit Tests from triggering the following error:

/usr/local/lib/ruby/3.0.0/bundler/runtime.rb:302:in `check_for_activated_spec!': You have already activated uri 0.10.1, but your Gemfile requires uri 0.13.0. Since uri is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports uri as a default gem. (Gem::LoadError)

fedora-latest:3.0 docker image has Ruby 3.0.0 instead of a newer version, and since uri is a default gem, there is a conflict with the uri version for 3.0.0.

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: Thomas Powell <thomas.powell@progress.com>
Signed-off-by: Thomas Powell <thomas.powell@progress.com>
@tpowell-progress tpowell-progress requested review from a team as code owners January 30, 2024 12:55
Signed-off-by: Thomas Powell <thomas.powell@progress.com>
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@tpowell-progress tpowell-progress changed the title Try switching to fedora-22 Try pinning to 0.10.1 if Ruby 3.0.0 specifically is in use (for Fedora rubydistro) Jan 30, 2024
@johnmccrae johnmccrae merged commit 061a202 into chef-17 Jan 30, 2024
@johnmccrae johnmccrae deleted the tp/fedora-fix branch January 30, 2024 14:42
@tpowell-progress tpowell-progress mentioned this pull request Jan 30, 2024
11 tasks
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