Skip to content

fix: resolve build errors and lint warnings#612

Merged
lpcox merged 1 commit intomainfrom
lpcox/fix-build-lint
Feb 3, 2026
Merged

fix: resolve build errors and lint warnings#612
lpcox merged 1 commit intomainfrom
lpcox/fix-build-lint

Conversation

@lpcox
Copy link
Collaborator

@lpcox lpcox commented Feb 3, 2026

  • Rename 'log' to 'logTypes' in internal/mcp/types.go to avoid conflict with standard log package import in connection.go
  • Fix SA1012 staticcheck warning in slog_adapter_test.go by replacing nil context with context.TODO()

- Rename 'log' to 'logTypes' in internal/mcp/types.go to avoid conflict
  with standard log package import in connection.go
- Fix SA1012 staticcheck warning in slog_adapter_test.go by replacing
  nil context with context.TODO()
Copilot AI review requested due to automatic review settings February 3, 2026 17:14
@lpcox lpcox merged commit d181d92 into main Feb 3, 2026
3 checks passed
@lpcox lpcox deleted the lpcox/fix-build-lint branch February 3, 2026 17:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes build errors and lint warnings by addressing a variable naming conflict and a staticcheck warning.

Changes:

  • Renamed the logger variable from log to logTypes in internal/mcp/types.go to avoid conflict with the standard library log package imported in connection.go
  • Fixed SA1012 staticcheck warning by replacing nil context with context.TODO() in a test case

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
internal/mcp/types.go Renamed logger variable from log to logTypes throughout the file (13 occurrences) to avoid import naming conflict
internal/logger/slog_adapter_test.go Replaced nil context with context.TODO() in test to satisfy staticcheck SA1012 warning

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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