!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

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

You have reached the beginning of time (for this room).


SenderMessageTime
15 Sep 2025
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)yeah it's a bug in the flake-self-attrs experimental implementation18:36:53
@raitobezarius:matrix.orgraitobezarius (DECT: 7248) i don't think it should try to pass submodules to the path fetcher 18:37:03
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)it should only pass it to a git fetcher18:37:07
@laurents:fsfe.orglaurents I'm wondering if git+file:// could work 18:37:34
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)
    static std::set<std::string> allowedAttrs{"submodules"};
    auto newRef(ref);

    for (auto & attr : *flake.selfAttrs) {
        if (!allowedAttrs.contains(attr.first)) {
            throw Error("flake 'self' attribute '%s' is not supported", attr.first);
        }
        newRef.input.attrs.insert_or_assign(attr.first, attr.second);
    }
    if (newRef != ref) {
        return newRef;
    }

18:38:16
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)this is the piece of code that is wrong18:38:19
@raitobezarius:matrix.orgraitobezarius (DECT: 7248) nwRef.input.attrs.insert_or_assign should NOT happen if the input DOES NOT support submodules 18:38:36
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)and… probably a warning should be emitted to tell you "hey, you are using a fetcher that doesn't support automatically retrieving submodules, this is fine but if you forget to do it, things could not work"18:39:06
@raitobezarius:matrix.orgraitobezarius (DECT: 7248) newRef.input.scheme should be the variable you should use to gate this assign 18:39:38
@raitobezarius:matrix.orgraitobezarius (DECT: 7248) newRef.input.scheme == "git" probably 18:39:43
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)that being said, not using flakes here would probably be very hard if you want to keep the input.follows behavior18:40:28
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)basically, we need flakes-compat to support the follows system18:40:49
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)and then you wouldn't have to deal with this18:40:55
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)but you'd lose all the flakes CLI18:41:03
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)let's just fix that bug I'd say18:41:08
@laurents:fsfe.orglaurents so git+file:// instead of path:// fixes it :) 18:41:26
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)great :)19:02:39
@raitobezarius:matrix.orgraitobezarius (DECT: 7248) I still think some warning to recommend git+file:// is relevant 19:03:21

Show newer messages


Back to Room ListRoom Version: 10