| 2 Nov 2023 |
netthier | I'm trying to submit an update PR for the kluctl package, but it's refusing to build. I'm struggling to find any relevant results for the error on Google, and the error does not occur when building the package manually using the official instructions.
error: builder for '/nix/store/jqkx3yj3q2x73k5y0ch5pq0g0q3d1kag-kluctl-2.22.0.drv' failed with exit code 1;
last 10 log lines:
> Building subPackage ./e2e
> Building subPackage ./e2e/test-utils
> Building subPackage ./e2e/test-utils/http-server
> Building subPackage ./e2e/test-utils/port-tool
> Building subPackage ./e2e/test-utils/test-helm-chart
> Building subPackage ./e2e/test_project
> Building subPackage ./e2e/test_resources
> Building subPackage ./install/controller
> Building subPackage ./internal/ipfs-exchange-info
> main module (github.com/kluctl/kluctl/v2) does not contain package github.com/kluctl/kluctl/v2/internal/ipfs-exchange-info
For full logs, run 'nix log /nix/store/jqkx3yj3q2x73k5y0ch5pq0g0q3d1kag-kluctl-2.22.0.drv'.
Anyone know what could be going on here? | 11:40:54 |
@qbit:tapenet.org | netthier: is it supposed to build test_* packages? | 12:32:33 |
@qbit:tapenet.org | if not use subPackages = [ "stuff" ]; | 12:32:57 |
@qbit:tapenet.org | to specify what you want to build | 12:33:02 |
netthier | In reply to@qbit:tapenet.org if not use subPackages = [ "stuff" ]; Thanks, specifying exclusively the cmd package did indeed result in a successful build | 13:09:08 |
@qbit:tapenet.org | swoot | 13:16:00 |
@bumperboat:matrix.org | so, the resticprofile repo uses go generate ./... to generate the mocks - if I put that in a preBuild - it allows the build phase to finish to where it outputs the vendorHash - once I put the hash in I can remove the preBuild and it builds | 15:30:51 |
@qbit:tapenet.org | gross | 15:31:29 |
@bumperboat:matrix.org | im not sure why buildGoModule doesnt just do a go build | 15:32:44 |
@qbit:tapenet.org | i'd for sure leave a comment in the derivation for someone that is updating it | 15:33:16 |
@qbit:tapenet.org | or maybe check if vendorHash = "", then do the preBuild step .. | 15:33:32 |