Skip to content
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

consider providing unique identifiers that transformers can use for generating files #12618

Closed
sigmundch opened this issue Aug 21, 2013 · 2 comments
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug

Comments

@sigmundch
Copy link
Member

It's important for transformers that generate new files to choose a file name that doesn't collide with existing files or files generated by another transformer that runs on the same phase.

We are not sure how much this will be a problem in the future, but one way to reduce the risk of name collisions would be to provide APIs in barback for this. For example, an API to retrieve a unique string or unique ID corresponding to the current transformer at the current phase. Then the transformers can generate unique assets IDs for generated files by including this unique string somewhere in the path.

(more context available in the discussions of this CL https://chromiumcodereview.appspot.com/22825012/)

@anders-sandholm
Copy link
Contributor

Removed Library-Barback label.
Added Pkg-Barback label.

@sigmundch sigmundch added Type-Enhancement P3 A lower priority bug or feature request area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. labels Feb 6, 2014
@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-archive/barback#12.

@DartBot DartBot closed this as completed Jun 5, 2015
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed triaged labels Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants