DEV Community

hiko1129
hiko1129

Posted on • Originally published at note.hiko1129.com on

[Ruby][Sorbet][tapioca] What to do when gem type definition conflicts cannot be resolved

Translate ja to en

前提

  • tapiocaを使っている
  • sorbet-typed(などのコミュニティの型定義)とコンフリクトしている
  • bundle exec srb rbi suggest-typedで解消されない

対応

下記のようにtapiocaのconfigのexcludeに対象gemを追加。

sorbet/tapioca/config.yml

gem:
  exclude:
    - gemA
Enter fullscreen mode Exit fullscreen mode

試してはいないがおそらくtyped_overridesでfalseにするなどでも解消できるはず(気が向いたら試す)。

gem:
  typed_overrides:
    gemA: "false"
Enter fullscreen mode Exit fullscreen mode

参考

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️