!VhzbGHamdfMiGxpXyg:robins.wtf

NixOS LXC

33 Members
lxc, lxd, incus discussions related to NixOS14 Servers

Load older messages


SenderMessageTime
28 Mar 2024
@hexa:lossy.networkhexa * hm, what does it do? copy with permissions in tact?17:21:32
@hexa:lossy.networkhexaor does it try to create metadata in the nix store?17:22:09
@hexa:lossy.networkhexa * or does it try to create stuff in the nix store?17:22:19
@adam:robins.wtfadamcstephenshttps://github.com/lxc/incus/blob/ce15a0a8c41d96466ff6222f8c2d52051fcfba85/internal/util/filesystem.go#L9217:25:30
@adam:robins.wtfadamcstephensthe former17:25:34
@adam:robins.wtfadamcstephens* closer to the former17:25:49
@adam:robins.wtfadamcstephenshttps://github.com/lxc/incus/blob/ce15a0a8c41d96466ff6222f8c2d52051fcfba85/cmd/incus-simplestreams/main_add.go#L34817:26:40
@hexa:lossy.networkhexathat code is so very much go17:29:34
@hexa:lossy.networkhexato copy a file, open two file descriptors, and then copy between them17:29:49
@adam:robins.wtfadamcstephensindeed. the idiom is to make do with the standard library, which is spartan.17:30:23
@adam:robins.wtfadamcstephensand 3x the lines for every error check17:30:42
@adam:robins.wtfadamcstephenson the plus side, properly passed errors are easy to trace :)17:32:15
@hexa:lossy.networkhexaso, I'm a bit surprised that you call os.Create(dest) and then don't own the resulting file17:32:42
@hexa:lossy.networkhexabecausing chowning to foreign uid is only possible as root iirc17:33:03
@adam:robins.wtfadamcstephensi wouldn't have called this one properly passed, since no context was added to where it came from17:33:04
@adam:robins.wtfadamcstephensthis filesystem util is probably mostly used by the server17:33:28
@adam:robins.wtfadamcstephensideally i don't want it to copy the file at all17:33:44
@adam:robins.wtfadamcstephens even just trying to generate-metadata wants a write handle on the file 17:35:04
@hexa:lossy.networkhexasus17:35:22
@adam:robins.wtfadamcstephensoh17:35:43
@adam:robins.wtfadamcstephensbecause this is just a wizard to manually create a metadata tarball17:36:02
@adam:robins.wtfadamcstephensthis whole thing is still sus17:37:36
@adam:robins.wtfadamcstephensis there a consumable list of channel bumps ?17:43:33
@hexa:lossy.networkhexapush events to the relevant branches on github?17:44:27
@hexa:lossy.networkhexagod I wish we had something sensibel 😄 17:44:36
@hexa:lossy.networkhexa * god I wish we had something sensible 😄 17:44:43
@adam:robins.wtfadamcstephensright? like an api i could consume? :)17:44:53
@hexa:lossy.networkhexathe whole release pipeline is such utter legacy garbage that gives you braindamage17:45:41
@hexa:lossy.networkhexa * the whole release pipeline is such utter legacy garbage that gives you brain damage17:45:50
@0x4a6f:matrix.org[0x4A6F] joined the room.19:40:07

Show newer messages


Back to Room ListRoom Version: 10