-
Notifications
You must be signed in to change notification settings - Fork 791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assets:precompile always modifies mtime in the generated manifest #707
Comments
It would be very nice to have a fix for this at some point. |
Shouldn't it be the asset.mtime.iso8601 |
I doubt it will. I was reviewing the code, and it seems asset mtime was intentionally removed. |
So I guess the mtime is supposed to be cached somewhere else and not rely on the timestamp reported by the OS? |
The manifest file was changed because the |
Any idea what the mtime is used for? Can we set it to be "1970-01-01 00:00:01" (Linux timestamp 1) and things will keep working? |
Nope, they won't. When running |
Expected behavior
Running
assets:precompile
twice should produce identical asset manifests when none of the underlying assets have been modified.Actual behavior
sprockets/lib/sprockets/manifest.rb
Line 174 in 2c38d99
mtime
is always modified. This produces an identical manifest except for the mtime fields:System configuration
Example App (Reproduction) - THIS IS IMPORTANT YOUR ISSUE LIKELY WILL NOT BE RESOLVED WITHOUT THIS
Setting
then running
should be sufficient to reproduce the behavior.
The text was updated successfully, but these errors were encountered: