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 code as output env vars are unconditional #3917

Merged
merged 1 commit into from Aug 18, 2020

Conversation

Ericson2314
Copy link
Member

Since the jsonObject unique ptr is reset to flush the string to make__json, all these !jsonObject conditions will always be true.

Since the jsonObject unique ptr is reset to flush the string to make
`__json`, all these `!jsonObject` conditions will always be true.
@edolstra
Copy link
Member

So that's a bug then. The intent was not to add environment variables for the outputs in structured attrs mode. But maybe it's too late to fix this since it would change derivations.

@Ericson2314
Copy link
Member Author

Yeah I was unsure about that. Doing some git-blame it looks like this was the case from the beginning of structured attrs. Pity there were no experimental features then!

@edolstra edolstra merged commit 1c8b550 into NixOS:master Aug 18, 2020
@Ericson2314 Ericson2314 deleted the output-env-var-unconditional branch August 18, 2020 14:58
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.

None yet

2 participants