1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-27 01:33:39 +02:00
goreleaser/internal/git
Oleksandr Redko bc32cd6fbf
ci: update golangci-lint to v1.62 (#5288)
This PR updates the version of golangci-lint to the latest
[v1.62](https://github.com/golangci/golangci-lint/releases/tag/v1.62.0)
and fixes appeared lint issues:

```
❯ golangci-lint run
internal/archivefiles/archivefiles.go:144:2: redefines-builtin-id: redefinition of the built-in function min (revive)
        var min int
        ^
internal/archivefiles/archivefiles.go:146:3: redefines-builtin-id: redefinition of the built-in function min (revive)
                min = len(b)
                ^
internal/archivefiles/archivefiles.go:148:3: redefines-builtin-id: redefinition of the built-in function min (revive)
                min = len(a)
                ^
cmd/root.go:152:29: redefines-builtin-id: redefinition of the built-in type rune (revive)
func timedRunE(verb string, rune func(cmd *cobra.Command, args []string) error) func(cmd *cobra.Command, args []string) error {
                            ^
internal/git/config_test.go:39:2: contains: use require.Contains (testifylint)
        require.True(t, strings.Contains(gitCfg, "branch.relative_branch.remote=."))
        ^
```
2024-11-16 10:31:22 -03:00
..
config_test.go ci: update golangci-lint to v1.62 (#5288) 2024-11-16 10:31:22 -03:00
config.go feat!: rename module to /v2 (#4894) 2024-05-26 15:02:57 -03:00
git_test.go feat!: rename module to /v2 (#4894) 2024-05-26 15:02:57 -03:00
git.go fix: git.ignore_tags not working (#4322) 2023-09-23 02:37:48 -03:00