this derivation will be built: /nix/store/2mh33gccldr5n7mcmlc913v82s56c8wf-golangci-lint.drv this path will be fetched (18.3 MiB download, 49.7 MiB unpacked): /nix/store/wrapy98jqawf2nii5c1g1m668qks1y6k-golangci-lint-2.14.0 building '/nix/store/2mh33gccldr5n7mcmlc913v82s56c8wf-golangci-lint.drv' golangci-lint> Running phase: unpackPhase golangci-lint> unpacking source archive /nix/store/i90wf5n9gnalfkc9nzla52xmvwmhdkp9-source golangci-lint> source root is source golangci-lint> Running phase: patchPhase golangci-lint> Running phase: updateAutotoolsGnuConfigScriptsPhase golangci-lint> Running phase: configurePhase golangci-lint> Running phase: buildPhase golangci-lint> WARN The linter 'wsl' is deprecated (since v2.2.0) due to: new major version. Replaced by wsl_v5. golangci-lint> WARN [linter] `allow-multiline-assign` is deprecated and always allowed in wsl >= v5 golangci-lint> WARN Suggested new configuration: golangci-lint> linters: golangci-lint> enable: golangci-lint> - wsl_v5 golangci-lint> settings: golangci-lint> wsl_v5: golangci-lint> allow-first-in-block: true golangci-lint> allow-whole-block: false golangci-lint> branch-max-lines: 2 golangci-lint> cmd/set_token_test.go:176:19: string `test.example.com` has 18 occurrences, make it a constant (goconst) golangci-lint> args: []string{"test.example.com", "test-token-123"}, golangci-lint> ^ golangci-lint> cmd/set_token_test.go:226:5: string `Successfully set token for test.example.com: ********` has 3 occurrences, make it a constant (goconst) golangci-lint> "Successfully set token for test.example.com: ********", golangci-lint> ^ golangci-lint> cmd/set_token_test.go:297:24: string `test-provider` has 6 occurrences, make it a constant (goconst) golangci-lint> setTokenProvider = "test-provider" golangci-lint> ^ golangci-lint> cmd/set_token_test.go:371:39: string `token` has 3 occurrences, make it a constant (goconst) golangci-lint> args: []string{"test.example.com", "token"}, golangci-lint> ^ golangci-lint> cmd/status_test.go:44:15: string `github` has 4 occurrences, make it a constant (goconst) golangci-lint> name: "github", golangci-lint> ^ golangci-lint> cmd/status_test.go:47:24: string `repo` has 4 occurrences, make it a constant (goconst) golangci-lint> scopes: []string{"repo", "read:user"}, golangci-lint> ^ golangci-lint> cmd/status_test.go:53:15: string `github.com` has 4 occurrences, make it a constant (goconst) golangci-lint> if host == "github.com" { golangci-lint> ^ golangci-lint> internal/nixconf/nixconf_integration_test.go:25:4: string `github.com` has 6 occurrences, make it a constant (goconst) golangci-lint> {"github.com", "ghs_test123"}, golangci-lint> ^ golangci-lint> internal/nixconf/nixconf_integration_test.go:26:4: string `gitlab.com` has 6 occurrences, make it a constant (goconst) golangci-lint> {"gitlab.com", "glpat_test456"}, golangci-lint> ^ golangci-lint> internal/nixconf/nixconf_integration_test.go:86:17: string `token1` has 3 occurrences, make it a constant (goconst) golangci-lint> "github.com": "token1", golangci-lint> ^ golangci-lint> internal/nixconf/nixconf_integration_test.go:87:17: string `token2` has 3 occurrences, make it a constant (goconst) golangci-lint> "gitlab.com": "token2", golangci-lint> ^ golangci-lint> internal/nixconf/nixconf_test.go:26:5: string `NIX_USER_CONF_FILES` has 4 occurrences, make it a constant (goconst) golangci-lint> "NIX_USER_CONF_FILES": "/custom/path/nix.conf", golangci-lint> ^ golangci-lint> internal/nixconf/nixconf_test.go:112:24: string `github.com` has 6 occurrences, make it a constant (goconst) golangci-lint> {"github.com token", "github.com", "ghp_testtoken123"}, golangci-lint> ^ golangci-lint> internal/nixconf/nixconf_test.go:113:24: string `gitlab.com` has 6 occurrences, make it a constant (goconst) golangci-lint> {"gitlab.com token", "gitlab.com", "glpat-testtoken456"}, golangci-lint> ^ golangci-lint> internal/nixconf/nixconf_test.go:239:22: string `token1` has 3 occurrences, make it a constant (goconst) golangci-lint> "github.com": "token1", golangci-lint> ^ golangci-lint> internal/nixconf/nixconf_test.go:240:22: string `token2` has 3 occurrences, make it a constant (goconst) golangci-lint> "gitlab.com": "token2", golangci-lint> ^ golangci-lint> internal/provider/detection_helpers.go:17:18: string `codeberg.org` has 4 occurrences, make it a constant (goconst) golangci-lint> if lowerHost == "codeberg.org" { golangci-lint> ^ golangci-lint> internal/provider/detection_helpers.go:20:19: string `forgejo` has 6 occurrences, make it a constant (goconst) golangci-lint> providerName: "forgejo", golangci-lint> ^ golangci-lint> internal/provider/detection_helpers.go:28:18: string `gitea.com` has 5 occurrences, make it a constant (goconst) golangci-lint> if lowerHost == "gitea.com" || lowerHost == "gitea.io" { golangci-lint> ^ golangci-lint> internal/provider/detection_helpers.go:31:19: string `gitea` has 5 occurrences, make it a constant (goconst) golangci-lint> providerName: "gitea", golangci-lint> ^ golangci-lint> internal/provider/detection_test.go:32:22: string `unknown` has 3 occurrences, make it a constant (goconst) golangci-lint> expectedProvider: "unknown", golangci-lint> ^ golangci-lint> internal/provider/forgejo.go:13:20: string `forgejo` has 6 occurrences, make it a constant (goconst) golangci-lint> providerName: "forgejo", golangci-lint> ^ golangci-lint> internal/provider/forgejo.go:29:20: string `codeberg.org` has 4 occurrences, make it a constant (goconst) golangci-lint> defaultHost: "codeberg.org", golangci-lint> ^ golangci-lint> internal/provider/pat_provider.go:55:3: string `Accept` has 3 occurrences, make it a constant (goconst) golangci-lint> "Accept": "application/json", golangci-lint> ^ golangci-lint> internal/provider/provider.go:132:58: string `forgejo` has 6 occurrences, make it a constant (goconst) golangci-lint> preferredOrder := []string{"github", "gitlab", "gitea", "forgejo"} golangci-lint> ^ golangci-lint> internal/provider/provider_test.go:29:15: string `mock` has 3 occurrences, make it a constant (goconst) golangci-lint> name: "mock", golangci-lint> ^ golangci-lint> internal/provider/provider_test.go:145:22: string `unknown` has 3 occurrences, make it a constant (goconst) golangci-lint> expectedProvider: "unknown", golangci-lint> ^ golangci-lint> internal/nixconf/nixconf.go:324:21: G703: Path traversal via taint analysis (gosec) golangci-lint> return os.WriteFile(dst, input, perms) golangci-lint> ^ golangci-lint> internal/ui/token_test.go:84:3: G101: Potential hardcoded credentials (gosec) golangci-lint> { golangci-lint> name: "GitHub OAuth token", golangci-lint> token: "gho_16C7e42F292c6912E7710c838347Ae178B4a", golangci-lint> expected: "gho_******4a", golangci-lint> }, golangci-lint> internal/ui/token_test.go:89:3: G101: Potential hardcoded credentials (gosec) golangci-lint> { golangci-lint> name: "GitHub personal access token", golangci-lint> token: "ghp_16C7e42F292c6912E7710c838347Ae178B4a", golangci-lint> expected: "ghp_******4a", golangci-lint> }, golangci-lint> internal/ui/token_test.go:94:3: G101: Potential hardcoded credentials (gosec) golangci-lint> { golangci-lint> name: "GitHub server token", golangci-lint> token: "ghs_16C7e42F292c6912E7710c838347Ae178B4a", golangci-lint> expected: "ghs_******4a", golangci-lint> }, golangci-lint> internal/ui/token_test.go:99:3: G101: Potential hardcoded credentials (gosec) golangci-lint> { golangci-lint> name: "GitHub fine-grained PAT", golangci-lint> token: "github_pat_11ABCDEF0_1234567890abcdef", golangci-lint> expected: "github_pat_******ef", golangci-lint> }, golangci-lint> 32 issues: golangci-lint> * goconst: 27 golangci-lint> * gosec: 5 error: Cannot build '/nix/store/2mh33gccldr5n7mcmlc913v82s56c8wf-golangci-lint.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/8ig8wsw1gfhd50n0iv23dvikm5yy4yj5-golangci-lint Last 25 log lines: > name: "GitHub OAuth token", > token: "gho_16C7e42F292c6912E7710c838347Ae178B4a", > expected: "gho_******4a", > }, > internal/ui/token_test.go:89:3: G101: Potential hardcoded credentials (gosec) > { > name: "GitHub personal access token", > token: "ghp_16C7e42F292c6912E7710c838347Ae178B4a", > expected: "ghp_******4a", > }, > internal/ui/token_test.go:94:3: G101: Potential hardcoded credentials (gosec) > { > name: "GitHub server token", > token: "ghs_16C7e42F292c6912E7710c838347Ae178B4a", > expected: "ghs_******4a", > }, > internal/ui/token_test.go:99:3: G101: Potential hardcoded credentials (gosec) > { > name: "GitHub fine-grained PAT", > token: "github_pat_11ABCDEF0_1234567890abcdef", > expected: "github_pat_******ef", > }, > 32 issues: > * goconst: 27 > * gosec: 5 For full logs, run: nix log /nix/store/2mh33gccldr5n7mcmlc913v82s56c8wf-golangci-lint.drv