-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Barback should allow secondary inputs to be overwritten #14554
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
Comments
Removed Area-Library label. |
Removed Library-Barback label. |
Merging this with 16612. I think the way this will work is that if a transformer explicitly consumes a secondary input, then it won't be an error to output an asset with that ID. If it doesn't exclude that input, I think by default that should be an error to make sure the user knows the transformer is stepping on something. |
I don't think this should be marked as a duplicate. We don't know without diving in whether the fix for issue #16612 will fix this automatically or not -- it's very possible this will require some additional support.
I disagree. I think if a user has requested something as a primary or secondary import, they should be allowed to overwrite it without explicitly consuming it. Otherwise I think we're imposing a bunch of unnecessary busywork on common transformer cases. Added Triaged label. |
After some thought, we've decided not to support this. It broke several important guarantees that Barback would otherwise offer. From my email to Bob:
We discussed use-cases and alternatives and decided that there aren't any critical use-cases that require this functionality. The most concrete use-case we have is of a spriting transformer that wants to remove all the PNGs that it used to construct a sprite, but issue #4 should address that case sufficiently. Added WontFix label. |
Issue #17843 has been merged into this issue. |
This issue has been moved to dart-archive/barback#17. |
Right now, if a transformer reads a secondary input and emits an output with the same name, that's considered an error, since the output conflicts with the pass-through version of that asset. This should instead be allowed as long as the output asset is read by the transformer as a secondary input (it's already allowed for primary input, since those are consumed and rendered unavailable).
The text was updated successfully, but these errors were encountered: