Deprecate --system on the daemon or at least warn it's the wrong thing when it will blow up #694

Open
opened 2025-02-22 20:48:13 +00:00 by jade · 4 comments
Owner

We occasionally have ux issues like this one and we could just stop this problem forever. --system should either not be accepted by the daemon from clients or it should generate a warning that they almost certainly mean --eval-system instead. The latter is easy, you can find how by looking at the trusted user implementation in the daemon which filters settings from the client; it would be in line with our "ignored setting because you're not trusted user" warning precedent.

#692

We occasionally have ux issues like this one and we could just stop this problem forever. --system should either not be accepted by the daemon from clients or it should generate a warning that they almost certainly mean --eval-system instead. The latter is easy, you can find how by looking at the trusted user implementation in the daemon which filters settings from the client; it would be in line with our "ignored setting because you're not trusted user" warning precedent. https://git.lix.systems/lix-project/lix/issues/692

@jade regarding #692 - the suggestion to use --eval-system does not seem to always work. I found two packages where I cannot get my linux builder to build using --eval-system, while it seems to at least most of the time work with --system. Recommending --eval-system seems to at least require additional configuration or some other small bit to make it work as a replacement for --system.

Actually, to be more precise, I haven't found a package yet that is not ported to my system yet, that I can compile using --eval-system.

@jade regarding #692 - the suggestion to use --eval-system does not seem to always work. I found two packages where I cannot get my linux builder to build using `--eval-system`, while it seems to at least most of the time work with `--system`. Recommending `--eval-system` seems to at least require additional configuration or some other small bit to make it work as a replacement for `--system`. Actually, to be more precise, I haven't found a package yet that is not ported to my system yet, that I can compile using `--eval-system`.
Author
Owner

(note: that is a flakes bug where eval -system is not considered. the daemon probably still should ignore --system which would rectify the ux issue mentioned by actually dispatching to a remote builder in that case, assuming flakes even look at --system to begin with)

(note: that is a flakes bug where eval -system is not considered. the daemon probably still should ignore --system which would rectify the ux issue mentioned by actually dispatching to a remote builder in that case, assuming flakes even look at --system to begin with)
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/2657 ("fix: flakes now obey --eval-system")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/2657", "number": 2657, "kind": "commit message"}], "cl_meta": {"2657": {"change_title": "fix: flakes now obey --eval-system"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/2657](https://gerrit.lix.systems/c/lix/+/2657) ("fix: flakes now obey --eval-system")

Got it, the bug is that this use case is supposed to work with --eval-system but it doesn't, and using --system only works accidentally some of the time.

Got it, the bug is that this use case is supposed to work with `--eval-system` but it doesn't, and using `--system` only works accidentally some of the time.
Sign in to join this conversation.
No milestone
No project
No assignees
3 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#694
No description provided.