-
Notifications
You must be signed in to change notification settings - Fork 218
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
Run built-in plugins before others #1277
Comments
It looks like As this comment says, we can't add I guess a solution could be to just use a temporary |
Would it be possible to instead not fail the whole build if one plugin fails, and defer the failure until the end? |
I've been looking into deferring the failure until the end a bit more. When a plugin fails, the error is caught here in I think a better solution might involve some refactoring of how |
This was resolved in #1762 , running all plugins for a projection before failure. |
When smithy build fails on a plugin that is not built-in (i.e., not
model
,build-info
orsources
), even though I think the model itself is good, depending on the order of plugins, themodel
plugin may not have been run yet. Having themodel
plugin run before would allow seeing the full model serialized even when other plugins fail.I found that the plugins end up in a TreeMap here making it natural order. It uses LinkedHashMap in the SmithyBuildConfig here, so it seems if we use LinkedHashMap instead of TreeMap in SmithyBuildImpl, we could make sure the BUILTIN_PLUGINS always get run first.
The text was updated successfully, but these errors were encountered: