Commit 182b76d
committed
Fix missing gem specs test
Apparently missing gem specs are only populated if the platform for the
declared gem is one of the platforms Bundler is installing for. Since
`:rbx` wasn't one of the added platforms, the gem was completely being
ignored.
However, we can't just add `:rbx` as a platform to the lockfile since
(a) it is not a platform supported by RubyGems anymore, and (b) it isn't
a platform that Sorbet has any support for.
Of the platforms supported by RubyGems, the one that we can also resolve
Sorbet against seems only to be the `:java` platform. So, adding the gem
that we expect to be missing as a `:java` platform gem and then adding
`:java` as a platform to the lockfile resurfaces the missing gem spec
again.1 parent 7f51c64 commit 182b76d
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
770 | | - | |
| 770 | + | |
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
775 | 779 | | |
776 | 780 | | |
777 | 781 | | |
| |||
0 commit comments