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

lib/bootstrap.rb -> lib/boot/strap.rb #2676

Merged
merged 2 commits into from
Jun 3, 2024
Merged

lib/bootstrap.rb -> lib/boot/strap.rb #2676

merged 2 commits into from
Jun 3, 2024

Conversation

fallwith
Copy link
Contributor

@fallwith fallwith commented Jun 1, 2024

  • Do not put any Ruby files in the root of lib/ that do not match the
    gem name, or Ruby lib path based issues can arise with other gems.
    In this case, move lib/bootstrap.rb to lib/boot/strap.rb to avoid
    colliding with require 'bootstrap' calls intended to be received by
    the bootstrap gem.
  • For bootstrapping, do not ever perform exit. Instead, simply use
    raise/rescue for control flow. As a result, any future unintended
    loading of the bootstrapping will simply warn and return instead of
    causing the Ruby runtime to exit.

resolves #2675

- Do not put any Ruby files in the root of `lib/` that do not match the
  gem name, or Ruby lib path based issues can arise with other gems.
  In this case, move `lib/bootstrap.rb` to `lib/boot/strap.rb` to avoid
  colliding with `require 'bootstrap'` calls intended to be received by
  the `bootstrap` gem.
- For bootstrapping, do not ever perform `exit`. Instead, simply use
  `raise/rescue` for control flow. As a result, any future unintended
  loading of the bootstrapping will simply `warn` and return instead of
  causing the Ruby runtime to exit.
changelog updated for bug 2675
Copy link

github-actions bot commented Jun 1, 2024

SimpleCov Report

Coverage Threshold
Line 93.8% 93%
Branch 71.03% 71%

Copy link
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of this!

@fallwith fallwith merged commit 675f5a6 into dev Jun 3, 2024
32 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Newrelic 9.10.0 breaks our CI - caused by a collision with the 'bootstrap' gem
4 participants