!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

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

Load older messages


SenderMessageTime
10 Dec 2024
@puck:puck.moepuckhm?13:19:32
@piegames:flausch.socialpiegamesbecause given that overriding __nixPath is also forbidden now, simply forcing the path to be empty via environment variables is sufficient to forbid <> all imports13:19:56
@puck:puck.moepuckmhm, yeah, i guess?13:21:57
@piegames:flausch.socialpiegames * because given that overriding __nixPath is also forbidden now, simply forcing the path to be empty via environment variables is sufficient to forbid all <> imports 13:22:01
@puck:puck.moepuckit'd be cool to have a way to unset findFile/etc thru scopedImport, but that would've broken the niv code too13:22:20
@piegames:flausch.socialpiegameswhat do you mean?13:22:47
@puck:puck.moepuck like, what if you just couldn't <foo> because __findFile doesn't exist 13:23:14
@piegames:flausch.socialpiegames What's the difference from not being able to use <foo> because the path is empty? 13:27:17
@puck:puck.moepuckuhhhh, static vs dynamic erroring :p13:27:49
@raitobezarius:matrix.orgraitobezarius not necessarily 14:50:41
@raitobezarius:matrix.orgraitobezariusthis implies you control properly the environment variable14:50:50
@raitobezarius:matrix.orgraitobezariusbut if someone bypasses the local development shell and do something weird14:50:58
@raitobezarius:matrix.orgraitobezariusthey will still end up overriding nixpath14:51:02
@raitobezarius:matrix.orgraitobezarius(so yes they can put it in many of their wrappers, but this doesn't guarantee you anything)14:51:15
@piegames:flausch.socialpiegamesI mean people can also still override __findPath to something useful again, can't they?14:51:19
@raitobezarius:matrix.orgraitobezariuswell if you really really care hard about no one being able to override to prevent complicated to debug errors because of divergent nix paths14:51:47
@raitobezarius:matrix.orgraitobezariusthat override solution is useful because no matter your wrapper you will get an error14:52:04
@piegames:flausch.socialpiegamesIs it this more useful than alternative workarounds to be worthwhile keeping around with only a warning for now?14:53:28
@piegames:flausch.socialpiegames I'd operate under the assumption that this is just about protecting from dumb users, and not any actual threat model? i.e. not having to assume malice 14:54:02
@raitobezarius:matrix.orgraitobezarius yeah just dumbness 15:14:53
@raitobezarius:matrix.orgraitobezariusit happened to me very recently15:14:57
@raitobezarius:matrix.orgraitobezariuson another project15:14:59
@raitobezarius:matrix.orgraitobezarius hard to say for me 15:34:54
@raitobezarius:matrix.orgraitobezariusit's a userspace breaking change per se15:34:59
@raitobezarius:matrix.orgraitobezariusso i'd be inclined to revert it to a warning15:35:06
@piegames:flausch.socialpiegamesHm, need to figure out how to propagate the information about the symbol being checked15:50:27
@piegames:flausch.socialpiegames Because I'm fine with a warning for __findFile, but not for the others like __sub 15:50:44
@raitobezarius:matrix.orgraitobezariusoh yes absolutely15:50:58
@piegames:flausch.socialpiegames raitobezarius: Proposal to allow overriding __nixPath, but keep __findFile as is. 17:39:41
@piegames:flausch.socialpiegameshttps://gerrit.lix.systems/c/lix/+/229518:04:45

Show newer messages


Back to Room ListRoom Version: 10