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

Change BuildEnv to a map #3144

Merged
merged 8 commits into from
May 3, 2024
Merged

Conversation

peterebden
Copy link
Member

@peterebden peterebden commented May 1, 2024

Decided while working on #3143 that this was messy as a slice. Heaps of code needs to loop over it and do string splitting and whatnot, and keeping on having to worry about duplicating entries which this now just does naturally.

This seems a lot neater. Pretty sure I've caught everywhere that uses it but there's the odd use that can slip through (e.g. iterating the return value of a function without naming the type might still compile).

It's hopefully more efficient, although I doubt it shows up much (whenever we need to construct env vars, we're executing a subprocess which will dominate total time).

@peterebden peterebden merged commit 7f20cc0 into thought-machine:master May 3, 2024
14 checks passed
@peterebden peterebden deleted the build-env-map branch May 3, 2024 09:16
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.

2 participants