You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve seen this in the wild before. I have no idea what would cause it though.
I would be interested in a PR to start. Likely an error would be a good idea. But let’s start with the basics of the implementation of how we can detect it.
For us, we produced multiple manifest by doing some funny business with caching between environments.
We had three different workspaces from which we deployed
We would occasionally clear out those workspaces and have no cache. In this case, sprockets would generate a new manifest which would end up in the cache.
Occasionally, that cache would be unpacked on top of a workspace that had another manifest. Now we have two manifest files.
We were at fault. Our caching was broken. But it was hard to diagnose because of the silence of sprockets.
We recently ran into an issue where some caching gone wrong left us with multiple
.sprockets-manifest-1234567.json
files.It'd be lovely to have a warning in this situation.
Relevant method to change is here:
sprockets/lib/sprockets/manifest_utils.rb
Lines 36 to 41 in 0cb3314
If this seems like a reasonable direction, I'd be happy to bring a PR.
Expected behavior
Actual behavior
System configuration
3.7.2 (but 4* is also affected)
2.3.4
The text was updated successfully, but these errors were encountered: