The emission of NIX_CONFIG
into post-build-hooks breaks post-build-hooks if they use config values incompatible with CppNix #739
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#739
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Yeah I am not fixing this (and I don't even think it should be fixed because what on earth are you supposed to do about it, we probably need to nuke this entire infrastructure, and I don't think we should stop causing bugs like it either), but I am documenting it.
This was, of course, found at work. What happens is that the post-build-hook receives NIX_CONFIG as an environment variable:
https://git.lix.systems/lix-project/lix/src/f21fd6b7e653230c01b454f486cc51d5cc999667/lix/libstore/build/derivation-goal.cc#L977-L980
This is then a config parse failure on CppNix since they did not adopt consensual accept-flake-config yet, and so their accept-flake-config remains a boolean rather than our tristate (which naturally defaults to a non-boolean value. whelp).
Mercury issue: DUX-3152
Okay, on one hand this is a ridiculous issue, but on the other hand we can only output overridden settings into the build hook, like we do with the protocol.
This issue was mentioned on Gerrit on the following CLs: