-
Notifications
You must be signed in to change notification settings - Fork 156
Labels
bugSomething isn't workingSomething isn't working
Description
/home/runner/work/tapioca/tapioca/vendor/bundle/ruby/3.4.0/gems/uri-1.1.1/lib/uri/common.rb:123: warning: already initialized constant URI::Schemes::SOURCE
/home/runner/work/tapioca/tapioca/vendor/bundle/ruby/3.4.0/gems/uri-1.1.1/lib/uri/common.rb:123: warning: previous definition of SOURCE was here
I made this commit to debug where this is coming from, and found these conflicting definitions when you run bin/test:
-
tapioca/lib/tapioca/helpers/source_uri.rb
Lines 78 to 82 in 2fcb44b
if URI.respond_to?(:register_scheme) URI.register_scheme("SOURCE", self) else @@schemes["SOURCE"] = self end
We can easily detect this with condition with URI.scheme_list.has_key?("SOURCE"), but that doesn't solve the discrepancy of trying to set two different classes for the same URI. They're really similar, but still distinct.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working