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
{{ message }}
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.
While working on rails/sprockets-rails#126, I discovered that (at least in 2.11.0, which Rails is temporarily effectively stuck on) depend_on_asset causes a dependency upon the named asset's dependencies, but not on the asset itself.
Is this intended? The internal uses of depend_on_asset suggest not, to me.
If it is in fact unintentional... is there any chance of us getting a 2.11.2 (building from 2.11.0, and pretending 2.11.1 didn't exist), or even a 2.11.0.1? (And presumably a 2.11.x branch to temporarily support it)
We obviously all want to get the incompatibility sorted out properly, and soon... but in the meantime, it sure makes me nervous that part of the Rails default gem suite has a hard <= dep.
❤️
The text was updated successfully, but these errors were encountered:
Hi!
While working on rails/sprockets-rails#126, I discovered that (at least in 2.11.0, which Rails is temporarily effectively stuck on)
depend_on_asset
causes a dependency upon the named asset's dependencies, but not on the asset itself.dependencies
is (quite reasonably) defined as not including the asset itself: /~https://github.com/sstephenson/sprockets/blob/2.x/lib/sprockets/bundled_asset.rb#L62-65But when processing
_dependency_paths
, we only record entries for thedependencies
ofasset
: /~https://github.com/sstephenson/sprockets/blob/2.x/lib/sprockets/processed_asset.rb#L136-139I haven't looked as closely, but at a glance, it sounds like master has the same behaviour: /~https://github.com/sstephenson/sprockets/blob/master/lib/sprockets/processed_asset.rb#L126-127
Is this intended? The internal uses of
depend_on_asset
suggest not, to me.If it is in fact unintentional... is there any chance of us getting a 2.11.2 (building from 2.11.0, and pretending 2.11.1 didn't exist), or even a 2.11.0.1? (And presumably a 2.11.x branch to temporarily support it)
We obviously all want to get the incompatibility sorted out properly, and soon... but in the meantime, it sure makes me nervous that part of the Rails default gem suite has a hard <= dep.
❤️
The text was updated successfully, but these errors were encountered: