setup
checks.x86_64-linux.golangci-lint
· build #479
· raw
1this derivation will be built:2 /nix/store/9ydb8q603fm6v9jy27ib0xgp5hr9g22z-niks3-tests-1.16.2.drv3error: Cannot build '/nix/store/9ydb8q603fm6v9jy27ib0xgp5hr9g22z-niks3-tests-1.16.2.drv'.4 Reason: builder failed with exit code 1.5 Output paths:6 /nix/store/46h0h2d00any1rhph9j1nf9gwjhrlslk-niks3-tests-1.16.27 Last 21 log lines:8 > tribuchet: building on jamie9 > Running phase: unpackPhase10 > unpacking source archive /nix/store/h20i87hkpmjih5ijf4q1q4nk7lnbzycd-source11 > source root is source12 > Running phase: patchPhase13 > Running phase: updateAutotoolsGnuConfigScriptsPhase14 > Running phase: configurePhase15 > Running phase: buildPhase16 > client/upload.go:556:1: cyclomatic complexity 32 of func `(*Client).PushPaths` is high (> 30) (gocyclo)17 > func (c *Client) PushPaths(ctx context.Context, paths []string) ([]string, error) {18 > ^19 > client/trust_push_test.go:38:11: G306: Expect WriteFile permissions to be 0600 or less (gosec)20 > if err = os.WriteFile(filepath.Join(bin, "nix"), []byte("#!/bin/sh\ncat \"$NIKS3_TEST_PATH_INFO\"\n"), 0o700); err != nil {21 > ^22 > client/trust_push_test.go:1:9: package should be `client_test` instead of `client` (testpackage)23 > package client24 > ^25 > 3 issues:26 > * gocyclo: 127 > * gosec: 128 > * testpackage: 129 For full logs, run:30 nix log /nix/store/9ydb8q603fm6v9jy27ib0xgp5hr9g22z-niks3-tests-1.16.2.drv