!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

407 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.135 Servers

Load older messages


SenderMessageTime
18 May 2024
@julia:the-apothecary.clubjuliaactually that seems to be checking for the thing with "backward" compat on the daemon side04:16:32
@julia:the-apothecary.clubjuliaimage.png
Download image.png
04:17:10
@julia:the-apothecary.clubjulia(i was looking to see if had more info than just valid for remote store)04:17:25
@julia:the-apothecary.clubjulia * (i was looking to see if had more info than just valid for remote store, i think the answer is no)04:18:23
@julia:the-apothecary.clubjuliaimage.png
Download image.png
04:25:08
@julia:the-apothecary.clubjuliauh so why is this trying to copy my version of the nixpkgs source to the remote store04:25:20
@julia:the-apothecary.clubjulia * uh so why is this trying to copy my version of the nixpkgs source to the remote store... and then eventually failing with 41304:25:30
@lunaphied:lunaphied.meLunaphied
In reply to @jade_:matrix.org
https://git.lix.systems/lix-project/lix/src/commit/7a3745b07607d3fc85fb5a0a08832ab078080884/src/libstore/remote-store.cc#L313-L315
Aaaaa jade why would you do this now I've seen how bad the protocol serializing code is again
04:45:52
@lunaphied:lunaphied.meLunaphied(Seriously the fact Nix works at all is remarkable in the face of that code)04:47:58
@julia:the-apothecary.clubjuliaI keep running into FIXME: concerning statement 04:49:33
@julia:the-apothecary.clubjulia screams queryPathInfoUncached (virtual method on a base class) in some implementations returns nullptr for "not there" and others throws an error 04:56:15
@julia:the-apothecary.clubjulia... some of them even shell out to other functions and catch their invalid path errors04:58:35
@julia:the-apothecary.clubjulia* ... some of them even shell out to other functions and catch their invalid path errors so as to return nullptr04:58:50
@qyriad:katesiria.orgQyriad yeah. we have inherited a codebase from hell xP 04:59:35
@julia:the-apothecary.clubjuliamost seem to be returning nullptr... should I standardise on that?04:59:53
@qyriad:katesiria.orgQyriad absolutely, just carefully make sure the result behavior is still the same, and try to keep changes in a CL closely related 05:01:50
@qyriad:katesiria.orgQyriad but we would absolutely love this fixed  05:01:56
@julia:the-apothecary.clubjuliayep planning 05:02:05
@qyriad:katesiria.orgQyriad it's minor but every bit helps in this codebase 05:02:11
@julia:the-apothecary.clubjuliait's a protected API so shouldn't have many consumers anyway 05:02:18
@julia:the-apothecary.clubjulia* it's a protected method so shouldn't have many consumers anyway 05:02:28
@julia:the-apothecary.clubjuliait has exactly (1) consumer05:06:07
@julia:the-apothecary.clubjuliawhich immediately throws an error anyway 05:06:32
@julia:the-apothecary.clubjulia* which does some more stuff then throws an error anyway 05:06:45
@madjar:matrix.orgmadjar joined the room.06:49:16
@jade_:matrix.orgjade_
In reply to @qyriad:katesiria.org
yeah. we have inherited a codebase from hell xP
hellco
09:38:58
@draupnir:lix.systemsdraupnirchanged room power levels.09:42:48
@julia:the-apothecary.clubjuliathis is certainly a code base09:46:16
@julia:the-apothecary.clubjulia me, last hour or so: "what's the point of requireValidPath?"
the code: never uses it
the one doc comment: "If requireValidPath is set to true (the default), the path must be inside a valid store path, otherwise it just needs to be physically present (but not necessarily properly registered)" (for "read a file to a string"). ????
09:48:13
@julia:the-apothecary.clubjulia * me, last hour or so: "what's the point of requireValidPath?"
the code: never uses it
the one doc comment: "If requireValidPath is set to true (the default), the path must be inside a valid store path, otherwise it just needs to be physically present (but not necessarily properly registered)" (for "read a file to a string"). ????
so there's this one argument passed through n levels of depth through libstore whose entire purpose appears to be... for when the store is borked
09:48:56

There are no newer messages yet.


Back to Room ListRoom Version: 10