-
Notifications
You must be signed in to change notification settings - Fork 8
Allow set.env plugin to return an empty object #81
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
base: main
Are you sure you want to change the base?
Allow set.env plugin to return an empty object #81
Conversation
Ok, but why? |
Because I have authored a plugin whose |
These semantics are deliberate and will impact consumers of this module downstream – in other words, this PR is a breaking change. A far simpler solution might be to |
Do you mean, in my plugin? That would still require a code change in @architect/inventory because the return value |
Got it, so the feature request is to enable |
It would meet our needs if Architect allowed a return value from
No, but I don't think that this is a breaking change. It doesn't alter the API, and I don't see how any plugin in the wild could already be depending upon |
Returning an empty object would be a breaking change if consumers of the env var property assume it has always properties, which it currently would. Returning |
Isn't Architect itself the only consumer of the return value of the plugin entry points? |
Everything in Architect is published as a module, so we make the assumption that developers may use them outside CLI workflows. But perhaps more importantly: it's reasonable to assume people will write tests around their Arc plugins. |
Thank you for helping out! ✨
We really appreciate your commitment to improving Architect
To maintain a high standard of quality in our releases, before merging every pull request we ask that you've completed the following:
main
npm it
from the repo root)readme.md
, help docs, inline docs & comments, etc.)changelog.md
Please also be sure to completed the CLA (if you haven't already).
Learn more about contributing to Architect here.
Thanks again!