!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

217 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.48 Servers

Load older messages


SenderMessageTime
8 Oct 2023
@k900:0upti.meK900 ⚡️Basically it wants to call Go from cmake to build a staticlib18:48:34
@qbit:tapenet.org@qbit:tapenet.orgthat doesn't seem too shitty19:49:23
@qbit:tapenet.org@qbit:tapenet.orglgtm - runs and what not20:05:12
9 Oct 2023
@qbit:tapenet.org@qbit:tapenet.orgthere are a number of things that use go libs that way.. I imagine with tailscale it will become more popular.. maybe a convenient way to hook into it would be worth adding..00:05:07
23 Oct 2023
@stroove:matrix.orgstroove joined the room.00:10:40
25 Oct 2023
@federicodschonborn:matrix.orgFederico Damián Schonborn changed their profile picture.00:12:49
27 Oct 2023
@federicodschonborn:matrix.orgFederico Damián Schonborn changed their profile picture.01:24:25
31 Oct 2023
@fractivore:cyberia.clubsymys joined the room.14:30:02
1 Nov 2023
@bumperboat:matrix.orgbumperboat joined the room.14:33:41
@bumperboat:matrix.orgbumperboathello my friends. i am attempting to add my first go package and am having errors on build - I would appreciate your expertise! https://pastebin.com/6nLf3waT 14:40:55
@qbit:tapenet.org@qbit:tapenet.orglooks like you probably need subPackages set14:42:08
@qbit:tapenet.org@qbit:tapenet.org maybe subPackages = [ "./main.go" ]; 14:43:53
@bumperboat:matrix.orgbumperboathmm still wants to build mocks14:45:51
@qbit:tapenet.org@qbit:tapenet.orgstrange theat vendorHash is empty14:47:08
@bumperboat:matrix.orgbumperboathttps://pastebin.com/nFfktbV314:47:16
@bumperboat:matrix.orgbumperboatthe manual said to set it to lib.fakeHash because I don't have the hash yet - I was expecting the output to give it to me so I can update the nix file14:47:57
@qbit:tapenet.org@qbit:tapenet.orgit should be given.. whenmaking /nix/store/6hb3rkffr6gszgrvbsjlc3xn5dhmiwx7-resticprofile-0.24.0-go-modules.drv ..14:48:48
@qbit:tapenet.org@qbit:tapenet.orgmaybe remove that from the store and see if it gives you the hash? 14:49:04
@bumperboat:matrix.orgbumperboati did a nix-store --delete same thing trying to build the mock14:58:47
@qbit:tapenet.org@qbit:tapenet.orgwell, that was specifically to get the hash for the -go-modules derivation14:59:13
@bumperboat:matrix.orgbumperboatnix-store --delete /nix/store/6hb3rkffr6gszgrvbsjlc3xn5dhmiwx7-resticprofile-0.24.0-go-modules.drv finding garbage collector roots... deleting '/nix/store/6hb3rkffr6gszgrvbsjlc3xn5dhmiwx7-resticprofile-0.24.0-go-modules.drv' deleting unused links... note: currently hard linking saves 958.38 MiB 1 store paths deleted, 0.00 MiB freed 15:01:35
@bumperboat:matrix.orgbumperboatis that what you meant15:01:42
@qbit:tapenet.org@qbit:tapenet.orginteresting.. it goes right into the build 15:01:47
@qbit:tapenet.org@qbit:tapenet.orgya, my hope was thatremoving the -go-moudles derivation you could get the vendorHash to print15:02:07
@bumperboat:matrix.orgbumperboat

i did this ``` nix-hash --base32 /nix/store/6hb3rkffr6gszgrvbsjlc3xn5dhmiwx7-resticprofile-0.24.0-go-modules.drv
3gkhkbk332xsxqyfrvn29yn8ap

15:02:52
@bumperboat:matrix.orgbumperboatbut it didnt like that format15:03:12
@qbit:tapenet.org@qbit:tapenet.org need to nix hash to-sri --type sha256 $(nix-hash --type sha256 /nix/store/6hb3rkffr6gszgrvbsjlc3xn5dhmiwx7-resticprofile-0.24.0-go-modules.drv) i think 15:04:17
@qbit:tapenet.org@qbit:tapenet.orgit won't help anyway15:04:44
@qbit:tapenet.org@qbit:tapenet.orgsince it's trying to build right away for some reason15:04:58
@bumperboat:matrix.orgbumperboat

go test

github.com/creativeprojects/resticprofile

wrapper_test.go:24:2: no required module provides package github.com/creativeprojects/resticprofile/monitor/mocks; to add it:
go get github.com/creativeprojects/resticprofile/monitor/mocks
FAIL github.com/creativeprojects/resticprofile [setup failed]

15:11:10

Show newer messages


Back to Room ListRoom Version: 9