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

environment ordering #22

Open
joshtriplett opened this issue Feb 9, 2021 · 2 comments
Open

environment ordering #22

joshtriplett opened this issue Feb 9, 2021 · 2 comments

Comments

@joshtriplett
Copy link
Contributor

I'd like to be able to control the ordering of variables in the environment. Would it be reasonable for the environment hash to become an ordered hash-map, rather than an unordered one?

@tailhook
Copy link
Owner

Sounds fine. But this is an extra dependency and is rarely needed, so let's make it an optional feature.

Just curious, what is the use case?

@joshtriplett
Copy link
Contributor Author

@tailhook Some tools print out or otherwise operate on environment variables in the order they appear in the environment, rather than sorting them first. I'd like to ensure reproducibility, and the easiest way to do that would be to always emit the environment in the same order.

It's also an (extremely minor) optimization.

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

No branches or pull requests

2 participants