| 1 Nov 2023 |
bumperboat | hello 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 | looks like you probably need subPackages set | 14:42:08 |
@qbit:tapenet.org | maybe subPackages = [ "./main.go" ]; | 14:43:53 |
bumperboat | hmm still wants to build mocks | 14:45:51 |
@qbit:tapenet.org | strange theat vendorHash is empty | 14:47:08 |
bumperboat | https://pastebin.com/nFfktbV3 | 14:47:16 |
bumperboat | the 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 file | 14:47:57 |
@qbit:tapenet.org | it should be given.. whenmaking /nix/store/6hb3rkffr6gszgrvbsjlc3xn5dhmiwx7-resticprofile-0.24.0-go-modules.drv .. | 14:48:48 |
@qbit:tapenet.org | maybe remove that from the store and see if it gives you the hash? | 14:49:04 |
bumperboat | i did a nix-store --delete same thing trying to build the mock | 14:58:47 |
@qbit:tapenet.org | well, that was specifically to get the hash for the -go-modules derivation | 14:59:13 |
bumperboat | nix-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 | is that what you meant | 15:01:42 |
@qbit:tapenet.org | interesting.. it goes right into the build | 15:01:47 |
@qbit:tapenet.org | ya, my hope was thatremoving the -go-moudles derivation you could get the vendorHash to print | 15:02:07 |
bumperboat | i did this ``` nix-hash --base32 /nix/store/6hb3rkffr6gszgrvbsjlc3xn5dhmiwx7-resticprofile-0.24.0-go-modules.drv 3gkhkbk332xsxqyfrvn29yn8ap
| 15:02:52 |
bumperboat | but it didnt like that format | 15:03:12 |
@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 | it won't help anyway | 15:04:44 |
@qbit:tapenet.org | since it's trying to build right away for some reason | 15:04:58 |
bumperboat | 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 |
bumperboat | thats if i run in the cloned repo | 15:11:26 |
@qbit:tapenet.org | ya, on the v0.24.0 checkout it fails too | 15:15:04 |
@qbit:tapenet.org | i think they cut a bad release | 15:15:09 |
bumperboat | go build works fine | 15:20:31 |
@qbit:tapenet.org | go mod tidy fails though | 15:21:57 |
bumperboat | ah - should i submit an issue with that to them? | 15:23:18 |
@qbit:tapenet.org | i am not sure :D | 15:23:48 |
bumperboat | :) | 15:23:56 |
@qbit:tapenet.org | it looks like the "/mocks/" stuff gets created.. then removed later on | 15:26:05 |