setup
checks.aarch64-darwin.golangci-lint
· build #480
· raw
1this derivation will be built:2 /nix/store/yq6hhvl44p0qyfk6576znvrmnpvpffxb-niks3-tests-1.16.2.drv3error: Cannot build '/nix/store/yq6hhvl44p0qyfk6576znvrmnpvpffxb-niks3-tests-1.16.2.drv'.4 Reason: builder failed with exit code 1.5 Output paths:6 /nix/store/hpwdy3bra4fzcdi8ysaz35fisky3jjkb-niks3-tests-1.16.27 Last 21 log lines:8 > tribuchet: building on mac029 > Running phase: unpackPhase10 > unpacking source archive /nix/store/p1vlkckv67lp4jxlk45b7ffvg9wdzn9q-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/yq6hhvl44p0qyfk6576znvrmnpvpffxb-niks3-tests-1.16.2.drv