-
Notifications
You must be signed in to change notification settings - Fork 209
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
Track inputs for GeneratedAssetNodes #584
Conversation
}, writer: writer); | ||
}); | ||
|
||
test('invalidates generated assets based on graph age', () async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note that I deleted this test, it wasn't applicable any more and should have been deleted during the migration to content hashes
var removedInputs = node.inputs.difference(reader.assetsRead); | ||
node.inputs.removeAll(removedInputs); | ||
for (var input in removedInputs) { | ||
// TODO: special type of dependency here? This means the primary input |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO it's fine to always treat the primary input like it was read. The edge cases shouldn't break anything, at worst builds are slightly less optimal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ya, thats pretty much my same line of thinking for now.
This fixes a bug where the set of dependencies for a given generated asset could never be reduced except if those files were deleted.
It also partially unblocks #371.