Skip to content

Add benchmark gem as a runtime dependency#445

Open
y-yagi wants to merge 1 commit intoShopify:mainfrom
y-yagi:add_benchmark_as_dependency
Open

Add benchmark gem as a runtime dependency#445
y-yagi wants to merge 1 commit intoShopify:mainfrom
y-yagi:add_benchmark_as_dependency

Conversation

@y-yagi
Copy link

@y-yagi y-yagi commented Jan 28, 2026

What are you trying to accomplish?

Allow to use packwerk on Ruby 4.0.

What approach did you choose and why?

Add benchmark gem as a runtime dependency this is because since Ruby 4.0.0, benchmark gem is not part of the default gems. We need to add that to use on Ruby 4.0+.

Fixes: #444

What should reviewers focus on?

Type of Change

  • Bugfix
  • New feature
  • Non-breaking change (a change that doesn't alter functionality - i.e., code refactor, configs, etc.)

Additional Release Notes

  • Breaking change (fix or feature that would cause existing functionality to change)

Include any notes here to include in the release description. For example, if you selected "breaking change" above, leave notes on how users can transition to this version.

If no additional notes are necessary, delete this section or leave it unchanged.

Checklist

  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • It is safe to rollback this change.

Since Ruby 4.0.0, `benchmark` gem is not part of the default gems.
We need to add that to use on  Ruby 4.0+.

Fixes: Shopify#444
@y-yagi y-yagi requested a review from a team as a code owner January 28, 2026 22:48
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.

[Bug Report] Packwerk is not compatible with Ruby 4.0.0

1 participant