!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

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

Load older messages


SenderMessageTime
18 May 2024
@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
@Ericson2314:matrix.orgJohn EricsonI recall it is used for some derivation thing14:12:22
@Ericson2314:matrix.orgJohn Ericsonbut that might also be store repairing/checking14:12:28
@Ericson2314:matrix.orgJohn Ericson
In reply to @julia:the-apothecary.club
most seem to be returning nullptr... should I standardise on that?
I think the intent is some difference between "know we don't have the path" and "error checking"
14:16:52
@puck:puck.moepuck the single usecase is readInvalidDerivation, which is a semantic that i think exists because invalid derivations do end up in the store, but don't get registered properly 14:20:55
@puck:puck.moepuckand honestly isn't a great name for what it does (it still requires a valid derivation, just it may not be registered with the store properly; which is, tbh, not something that should be able to happen)14:21:48
@puck:puck.moepuck e.g. the easiest way to make this happen is builtins.toFile "hi.drv" "meow" 14:22:42
@puck:puck.moepuck it writes to /nix/store/233k2fcz02xfpi48ildccq1740gh5mcs-hi.drv but also errors out saying error: expected string 'D'; but claims the path is invalid simultaneously 14:23:46
* @k900:0upti.meK900 flips the counter14:28:07
@Ericson2314:matrix.orgJohn Ericson puck: yeah that reflects my memory 14:30:45
@Ericson2314:matrix.orgJohn Ericson I moved the .drv validation code out of LocalStore so all implementations can use it 14:31:07
@Ericson2314:matrix.orgJohn Ericsonbut it not make it be called more eagerly for things like that14:31:16
@Ericson2314:matrix.orgJohn Ericsonso the file is removed if the validations fails14:32:15
@Ericson2314:matrix.orgJohn Ericson(could also assueme drvs are small and buffer in memory first)14:32:32
@Ericson2314:matrix.orgJohn Ericsonyou all will probably want to take my code unifying the other add to store with the add text to store, so there are fewer versions of this shit to play wack-a-mole with14:33:04
@ckie:ckie.devmei 🌒& hi it seems like lix repl doesn't detect cycles and print them correctly w :p ? 19:58:59
@puck:puck.moepuckit does here; are you thinking about cycles or infinitely recursive non-cycle structures20:00:10

Show newer messages


Back to Room ListRoom Version: 10