Skip to content

Add lint rule to prevent use of stdlib log package#4957

Open
pietern wants to merge 1 commit intomainfrom
go1.21-log-slog
Open

Add lint rule to prevent use of stdlib log package#4957
pietern wants to merge 1 commit intomainfrom
go1.21-log-slog

Conversation

@pietern
Copy link
Copy Markdown
Contributor

@pietern pietern commented Apr 13, 2026

Summary

  • Add a depguard rule that blocks import "log" and points to libs/log
  • Migrate the single existing violation in libs/appproxy
  • Exclude build tools (docsgen, schema, validation) that use log.Fatal

This pull request was AI-assisted by Isaac.

Add a depguard rule that blocks `import "log"` and nudges towards
`libs/log` instead. Migrate the single existing violation in
`libs/appproxy`. Build tools (`docsgen`, `schema`, `validation`)
are excluded.

Co-authored-by: Isaac
@github-actions
Copy link
Copy Markdown

Waiting for approval

Based on git history, these people are best suited to review:

Eligible reviewers: @andrewnester, @anton-107, @renaudhartert-db, @shreyas-goenka, @simonfaltum

Suggestions based on git history. See OWNERS for ownership rules.

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.

1 participant