diff --git a/.golangci.yml b/.golangci.yml index 235a4ec58..5ba08eedf 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,10 +4,13 @@ linters: disable: - cyclop # covered by gocyclo - depguard # not needed - - exhaustruct + - exhaustruct # don't _always_ need to exhaustively create struct + - exhaustruct_v5 # don't _always_ need to exhaustively create struct - funlen # rely on code review to limit function length - gochecknoglobals # sometimes useful to declare constants - gocognit # dubious "cognitive overhead" quantification + - goconst # too noisy + - gomodguard # replaced with gomodguard_v2 - ireturn # "accept interfaces, return structs" isn't ironclad - lll # don't want hard limits for line length - maintidx # covered by gocyclo diff --git a/Makefile b/Makefile index 6ab1dc9f4..2fd3f2e19 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ DOCKER_BUILD_EXTRA_ARGS ?= DOCKER_BUILDER := bufbuild-plugins DOCKER_CACHE_DIR ?= $(TMP)/dockercache GO ?= go -GOLANGCI_LINT_VERSION ?= v2.11.4 +GOLANGCI_LINT_VERSION ?= v2.13.1 GOLANGCI_LINT := $(TMP)/golangci-lint-$(GOLANGCI_LINT_VERSION) # OUTPUT_DIR is the directory where plugin zip files are written by `make package`. OUTPUT_DIR ?= $(TMP)/plugins diff --git a/go.mod b/go.mod index 53b0cfefc..53d87f46e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/bufbuild/plugins -go 1.26 +go 1.27 require ( aead.dev/minisign v0.3.0 diff --git a/internal/cmd/release/candidates.go b/internal/cmd/release/candidates.go index f8bd047b0..f4f8cd497 100644 --- a/internal/cmd/release/candidates.go +++ b/internal/cmd/release/candidates.go @@ -188,7 +188,7 @@ func (c *command) addPackageVersionCandidates( ) ([]pluginNameVersion, error) { var added []pluginNameVersion opts := &github.PackageListOptions{ - ListOptions: github.ListOptions{PerPage: 100}, + PerPage: 100, } for { versions, resp, err := ghClient.GitHub.Organizations.PackageGetAllVersions(