-
Notifications
You must be signed in to change notification settings - Fork 194
Open
Description
https://github.com/mime-types/ruby-mime-types/actions/runs/17550146301/job/49840480093?pr=255
This is a log from something which doesn't change any Ruby code.
As far as I can tell, this appears to be some sort of race condition when calling methods added by #extend
, but it's been a few weeks since I've investigated it.
MIME::Types::#type_for#test_0002_separates the extension from filenames:
NoMethodError: undefined method `load_preferred_extension' for an instance of MIME::Types
lib/mime/type/columnar.rb:30:in `preferred_extension'
lib/mime/type.rb:221:in `__extension_priority_compare'
lib/mime/types.rb:156:in `block in type_for'
<internal:core> core/array.rb:1588:in `isort_block!'
<internal:core> core/array.rb:1498:in `mergesort_block!'
<internal:core> core/array.rb:1406:in `sort_fallback'
<internal:core> core/array.rb:1707:in `sort'
<internal:core> core/array.rb:1707:in `sort!'
<internal:core> core/enumerable.rb:470:in `sort'
lib/mime/types.rb:151:in `type_for'
lib/mime/types/registry.rb:36:in `type_for'
test/test_mime_types.rb:16:in `block in mime_types'
<internal:core> core/kernel.rb:520:in `tap'
test/test_mime_types.rb:8:in `mime_types'
test/test_mime_types.rb:139:in `test_0002_separates the extension from filenames'
I can't really tell you when this started, but I think the columnar support has been in place for at least five years and my test matrix has changed several times.
Metadata
Metadata
Assignees
Labels
No labels