!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

993 Members
For people hacking on the Nix package manager itself210 Servers

Load older messages


SenderMessageTime
29 Aug 2021
@manveru:matrix.orgmanveru i really wish the crystal formatter wouldn't insist on changing #! to # ! after the first line... 08:40:28
@abathur:matrix.orgabathuroof14:40:39
31 Aug 2021
@roberthensing:matrix.orgRobert Hensing (roberth) I keep getting this wrong nix flake lock update --update-input 12:16:46
@roberthensing:matrix.orgRobert Hensing (roberth)is it just me or should this be a proper noun-verb command of its own?12:17:19
@Las:matrix.orgLas Robert Hensing (roberth): I often incorrectly use nix flake update ... 12:22:38
@Las:matrix.orgLasIt doesn't make much sense honestly12:22:42
@roberthensing:matrix.orgRobert Hensing (roberth)flake lock feels more noun-noun than noun-verb, although it's technically both12:23:47
@roberthensing:matrix.orgRobert Hensing (roberth) nix flake update <inputName> would make most sense to me 12:24:10
@roberthensing:matrix.orgRobert Hensing (roberth)could be multiple input names as well12:24:37
@Las:matrix.orgLas The odd thing is you can put --update-input on anything 12:25:10
@roberthensing:matrix.orgRobert Hensing (roberth)heh, ok12:25:32
@roberthensing:matrix.orgRobert Hensing (roberth) makes sense for --override-input, but update should be a separate action 12:26:04
@roberthensing:matrix.orgRobert Hensing (roberth) also update --override-input is meaningless or misleading 12:28:17
@roberthensing:matrix.orgRobert Hensing (roberth) nix flake update should be nix registry update? I think? 12:29:59
@roberthensing:matrix.orgRobert Hensing (roberth)anyway, this is probably going nowhere and I need to get work done, ttyl12:30:20
1 Sep 2021
@niksnut:matrix.orgniksnut
In reply to @roberthensing:matrix.org
nix flake update should be nix registry update? I think?
No, nix flake update updates the flake lock file, it doesn't have anything to do with the registry.
16:37:46
@roberthensing:matrix.orgRobert Hensing (roberth)then I don't know what should have been modified when I used it. Nothing changed.16:38:46
@niksnut:matrix.orgniksnutMaybe there was nothing to update?16:39:35
@roberthensing:matrix.orgRobert Hensing (roberth)or maybe it cached the thing I wanted to update16:40:13
@niksnut:matrix.orgniksnutit implies --tarball-ttl 0 so it shouldn't cache anything16:42:02
@roberthensing:matrix.orgRobert Hensing (roberth)hmm. That applies to git caching as well right?16:42:28
@roberthensing:matrix.orgRobert Hensing (roberth)it was github anyway, so that's a tarball16:42:43
@niksnut:matrix.orgniksnutyes16:43:18
@roberthensing:matrix.orgRobert Hensing (roberth)
In reply to @roberthensing:matrix.org
nix flake update <inputName> would make most sense to me
can it be changed to this?
16:44:10
@roberthensing:matrix.orgRobert Hensing (roberth)so it's all by default, or the closure of specified inputs16:44:49
@roberthensing:matrix.orgRobert Hensing (roberth)you know what, this is probably better to discuss on github, so the discussion is more discoverable16:50:54
@niksnut:matrix.orgniksnut
In reply to @roberthensing:matrix.org
can it be changed to this?
No because nix flake update takes an optional flakeref (like nix flake update /path) so this would be ambiguous.
19:48:36
@roberthensing:matrix.orgRobert Hensing (roberth)right. I've never wanted to do that. Most package managers just operate on the working directory20:43:41
@Las:matrix.orgLas I never realized that the flake URI parameter to nix flake update was the flake whose inputs you wanted to update, and not the URI of the input you wanted to update... 20:47:04
@Las:matrix.orgLasThis is honestly quite counterintuitive20:47:26

Show newer messages


Back to Room ListRoom Version: 6