Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 7, 2026

This PR contains the following updates:

Package Change Age Confidence
github.com/golangci/golangci-lint/v2 v2.7.2v2.8.0 age confidence

Release Notes

golangci/golangci-lint (github.com/golangci/golangci-lint/v2)

v2.8.0

Compare Source

Released on 2026-01-07

  1. Linters new features or changes
    • godoc-lint: from 0.10.2 to 0.11.1 (new rule: require-stdlib-doclink)
    • golines: from 442fd00 to 0.14.0
    • gomoddirectives: from 0.7.1 to 0.8.0
    • gosec: from daccba6 to 2.22.11 (new rule: G116)
    • modernize: from 0.39.0 to 0.40.0 (new analyzers: stringscut, unsafefuncs)
    • prealloc: from 1.0.0 to 1.0.1 (message changes)
    • unqueryvet: from 1.3.0 to 1.4.0 (new options: check-aliased-wildcard, check-string-concat, check-format-strings, check-string-builder, check-subqueries, ignored-functions, sql-builders)
  2. Linters bug fixes
    • go-critic: from 0.14.2 to 0.14.3
    • go-errorlint: from 1.8.0 to 1.9.0
    • govet: from 0.39.0 to 0.40.0
    • protogetter: from 0.3.17 to 0.3.18
    • revive: add missing enable-default-rules setting
  3. Documentation
    • docs: split installation page

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Contributor Author

renovate bot commented Jan 7, 2026

ℹ️ Artifact update notice

File name: tools/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 15 additional dependencies were updated

Details:

Package Change
github.com/BurntSushi/toml v1.5.0 -> v1.6.0
github.com/MirrexOne/unqueryvet v1.3.0 -> v1.4.0
github.com/alecthomas/chroma/v2 v2.20.0 -> v2.21.1
github.com/alexkohler/prealloc v1.0.0 -> v1.0.1
github.com/ghostiam/protogetter v0.3.17 -> v0.3.18
github.com/go-critic/go-critic v0.14.2 -> v0.14.3
github.com/godoc-lint/godoc-lint v0.10.2 -> v0.11.1
github.com/golangci/golines v0.0.0-20250217134842-442fd0091d95 -> v0.14.0
github.com/ldez/gomoddirectives v0.7.1 -> v0.8.0
github.com/securego/gosec/v2 v2.22.11-0.20251204091113-daccba6b93d7 -> v2.22.11
golang.org/x/mod v0.30.0 -> v0.31.0
golang.org/x/sync v0.18.0 -> v0.19.0
golang.org/x/sys v0.38.0 -> v0.39.0
golang.org/x/term v0.35.0 -> v0.38.0
golang.org/x/tools v0.39.0 -> v0.40.0

@renovate renovate bot requested a review from a team as a code owner January 7, 2026 22:39
…ve lint errors)

Updated slice initializations in multiple files to use make with a specified capacity, improving performance and clarity. Adjusted test and handler files to reflect these changes.
@renovate
Copy link
Contributor Author

renovate bot commented Jan 13, 2026

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

if opt.token != "" {
headers["Authorization"] = fmt.Sprintf("Bearer %s", opt.token.Raw())
}
opts = append(opts, otlptracehttp.WithHeaders(headers))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh you can't append here, you're making it length longer with this, you'll need to do
opts[1] = otlptracehttp.WithHeaders(headers)

(and opts[0].... above too)

Having said that, I don't know why the linter is complaining, it's more readable before!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh actually, colour me wrong! This works! Though i still think it was more readable before 😅

I got confused - as this wouldn't have worked with
opts = make([]otlptracehttp.Option, 2)
(without that extra 0!)

@DomParfitt
Copy link
Contributor

It looks like the suggestion from the linter here may be the result of a bug: alexkohler/prealloc#62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants