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

Simplify the passed environment variables #91

Merged
merged 1 commit into from
Oct 1, 2022

Conversation

theofidry
Copy link
Collaborator

Historically we had those environment variables because they were needed for the child process to behave correctly. As of #28, this is no longer needed.

It is still a nice extension point to have, but at the very least we no longer need to give it the container as we currently do.

For this reason, in this PR:

  • Remove the required ContainerInterface from the getEnvironmentVariables() method
  • Rename getEnvironmentVariables() to getExtraEnvironmentVariables() to better convey that they are not the only environment variables passed down
  • Change the default list of environment variables passed to null. In practice there is no difference with [], but the code path followed is slightly simpler when null is given.

@theofidry theofidry merged commit 5bbcb14 into webmozarts:master Oct 1, 2022
@theofidry theofidry deleted the feature/remove-env branch October 1, 2022 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant