rails / sprockets

Rack-based asset packaging system
MIT License
932 stars 792 forks source link

Sprockets compiles from "*.jpeg" to "*.jpg" that creates an error #775

Closed loqimean closed 10 months ago

loqimean commented 1 year ago

Expected behavior

hello.jpeg is founded as hello.jpg OR compiled as it is: hello.jpeg

Actual behavior

Instead of this Sprockets on production compiles my file called hello.jpeg to file hello.jpg and because of it I have an error on my production where I have the next chunk of code: image_path("hello.jpeg"), because of file are stored with .jpeg extension, but compiled as .jpg

System configuration

Example App (Reproduction)

Will be added soon

rubydesign commented 1 year ago

I second that. Must be a very recent change.

image.jpeg gets compiled to image.jpg

and then image_tag("image.jpeg") throws and error, but only in product (just the way we love it, error only in production :-)

Reverting, i would suggest even yanking

chadlwilson commented 10 months ago

I think this is fixed in #781 released in 4.2.1