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

Fix unexpected fallbacks to full index by adding FalseClass and Time to the SafeMarshal list #6655

Merged
merged 6 commits into from
May 5, 2023

Conversation

indirect
Copy link
Member

@indirect indirect commented May 3, 2023

fixes #6614, maybe

@stanhu
Copy link
Contributor

stanhu commented May 5, 2023

I've confirmed this patch resolves the issue for us with this config:

source 'https://rubygems.org'

source 'https://packagecloud.io/cinc-project/stable' do
  gem 'chef', '~> 17.10.0'
  gem 'chef-cli', '~> 5.6.1'
  gem 'chef-utils'
  gem 'mixlib-versioning'
end

@indirect indirect requested review from simi, segiddins and hsbt May 5, 2023 17:10
it "loads Gem::Specification" do
gem_spec = Gem::Specification.new("name", "3.7.2")
gem_spec = Gem::Specification.new do |s|
Copy link
Member

Choose a reason for hiding this comment

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

nit: this doesn't test false ?

@indirect indirect enabled auto-merge May 5, 2023 17:35
@indirect indirect merged commit 3593ade into master May 5, 2023
92 checks passed
@indirect indirect deleted the safeyaml-false branch May 5, 2023 19:51
Copy link
Member

@simi simi left a comment

Choose a reason for hiding this comment

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

👍

@hsbt
Copy link
Member

hsbt commented May 8, 2023

👍 @indirect Thanks!

@deivid-rodriguez deivid-rodriguez changed the title add FalseClass and Time to the SafeMarshal list Fix unexpected fallbacks to full index by adding FalseClass and Time to the SafeMarshal list May 8, 2023
deivid-rodriguez pushed a commit that referenced this pull request May 9, 2023
add FalseClass and Time to the SafeMarshal list

(cherry picked from commit 3593ade)
@stanhu
Copy link
Contributor

stanhu commented May 9, 2023

@deivid-rodriguez Do you think you could release RubyGems 3.4.13 to address this? It seems our bundle install now fails with 3.4.12 because of this bug.

@simi
Copy link
Member

simi commented May 9, 2023

@stanhu release is in progress #6666

@stanhu
Copy link
Contributor

stanhu commented May 9, 2023

Thanks!

deivid-rodriguez pushed a commit that referenced this pull request May 9, 2023
add FalseClass and Time to the SafeMarshal list

(cherry picked from commit 3593ade)
matzbot pushed a commit to ruby/ruby that referenced this pull request May 10, 2023
@rubygems rubygems deleted a comment from jakerocksfour May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bundler reports "could not fetch from the dependency API, trying the full index" when using packagecloud
6 participants