nix-build no longer follows log-format option #1099

Closed
opened 2026-01-08 16:16:13 +00:00 by tom-hubrecht · 1 comment
Member

Describe the bug

Since lix-project/lix@b97b2e858b it is no longer possible to change the log format for the nix2 cli interface, it will always be raw-with-logs this is in contrast to the nix3 interface where it works as intended

Steps To Reproduce

  1. Run nix-build --log-format internal-json toto.nix
  2. Observe that no json is ever shown

Expected behavior

Nix correctly following the required log format

nix --version output

nix (Lix, like Nix) 2.95.0-b97b2e858babef00faa46fa557d9afe9e089a12a

## Describe the bug Since https://git.lix.systems/lix-project/lix/commit/b97b2e858babef00faa46fa557d9afe9e089a12a it is no longer possible to change the log format for the `nix2` cli interface, it will always be `raw-with-logs` this is in contrast to the `nix3` interface where it works as intended ## Steps To Reproduce 1. Run `nix-build --log-format internal-json toto.nix` 2. Observe that no json is ever shown ## Expected behavior Nix correctly following the required log format ## `nix --version` output nix (Lix, like Nix) 2.95.0-b97b2e858babef00faa46fa557d9afe9e089a12a
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/4888 ("fix(log-format): Apply the required setting with the nix2 cli")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/4888", "number": 4888, "kind": "commit message"}], "cl_meta": {"4888": {"change_title": "fix(log-format): Apply the required setting with the nix2 cli"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/4888](https://gerrit.lix.systems/c/lix/+/4888) ("fix(log-format): Apply the required setting with the nix2 cli")
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix#1099
No description provided.