Skip to content

Commit 860b678

Browse files
chore: more aggressive tapioca detection logic for skipping compiler introspection (#65)
1 parent d210ee3 commit 860b678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/openai.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# We already ship the preferred sorbet manifests in the package itself.
44
# `tapioca` currently does not offer us a way to opt out of unnecessary compilation.
5-
if Object.const_defined?(:Tapioca) && caller_locations.any? { _1.path.end_with?("tapioca/cli.rb") }
5+
if Object.const_defined?(:Tapioca) && caller.chain([$0]).chain(ARGV).grep(/tapioca/)
66
Warning.warn(
77
<<~WARN
88
\n

0 commit comments

Comments
 (0)