Skip to content

feat: Show list of ignored gems - #2354

Merged
KaanOzkan merged 3 commits into
Shopify:mainfrom
written-fresh:feat/show-skipped-gems
Aug 28, 2026
Merged

feat: Show list of ignored gems#2354
KaanOzkan merged 3 commits into
Shopify:mainfrom
written-fresh:feat/show-skipped-gems

Conversation

@written-fresh

@written-fresh written-fresh commented Jul 20, 2025

Copy link
Copy Markdown
Contributor

Motivation

This PR addresses #1347 which aims to show a message when trying to run tapioca gem on a ignored gem.

Implementation

I have added a skipped gems property to the cli.

Tests

I have now written a test just to confirm something like gem sorbet outputs the warning that it was skipped. More than happy to add more if needed.

No warning

Showing no warning

Warning

image

@written-fresh
written-fresh force-pushed the feat/show-skipped-gems branch from 1ee1e56 to 6645633 Compare August 4, 2026 22:21
@written-fresh
written-fresh marked this pull request as ready for review August 4, 2026 22:24
@written-fresh
written-fresh requested a review from a team as a code owner August 4, 2026 22:24
Comment thread spec/tapioca/cli/gem_spec.rb Outdated
Comment thread lib/tapioca/cli.rb Outdated
Comment thread lib/tapioca/commands/gem_generate.rb Outdated
@written-fresh
written-fresh force-pushed the feat/show-skipped-gems branch 2 times, most recently from 28d3674 to bcc671b Compare August 5, 2026 15:25

@KaanOzkan KaanOzkan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you, few more refactors. Also there might be some long lines, it'd be good to run rubocop before pushing.

Comment thread lib/tapioca/commands/gem_generate.rb Outdated
Comment thread lib/tapioca/commands/gem_generate.rb
Comment thread lib/tapioca/commands/gem_generate.rb Outdated
Comment thread lib/tapioca/commands/gem_generate.rb
Comment thread lib/tapioca/commands/gem_generate.rb Outdated
Comment thread lib/tapioca/commands/gem_generate.rb Outdated
Comment thread spec/tapioca/cli/gem_spec.rb
@written-fresh
written-fresh force-pushed the feat/show-skipped-gems branch 2 times, most recently from 829bab8 to 0cd6cf5 Compare August 27, 2026 17:46
@written-fresh
written-fresh force-pushed the feat/show-skipped-gems branch from 0cd6cf5 to ff4e986 Compare August 27, 2026 17:49
@KaanOzkan KaanOzkan added the enhancement New feature or request label Aug 28, 2026
Skip explicitly excluded gems before resolving the requested gem list. This preserves `main` behavior and prevents `--include-dependencies` from generating dependencies of an excluded gem.
return @bundle.dependencies if gem_names.empty?

gem_names.each_with_object([]) do |gem_name, gems|
(gem_names - @exclude).each_with_object([]) do |gem_name, gems|

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CI revealed a failing case where a gem was supplied and excluded, brought back the original behaviour and added a test.

@KaanOzkan
KaanOzkan force-pushed the feat/show-skipped-gems branch from 7d799b4 to 85b6cca Compare August 28, 2026 14:19
@KaanOzkan
KaanOzkan enabled auto-merge August 28, 2026 14:30
@KaanOzkan
KaanOzkan disabled auto-merge August 28, 2026 14:30
@KaanOzkan
KaanOzkan enabled auto-merge August 28, 2026 14:31
@KaanOzkan
KaanOzkan merged commit bafa0e1 into Shopify:main Aug 28, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants