Skip to content

refactor: replace deprecated logger package and remove chat command#138

Merged
fyxme merged 4 commits intomainfrom
refactor/replace-deprecated-logger-and-remove-chat
Mar 25, 2026
Merged

refactor: replace deprecated logger package and remove chat command#138
fyxme merged 4 commits intomainfrom
refactor/replace-deprecated-logger-and-remove-chat

Conversation

@fyxme
Copy link
Copy Markdown
Member

@fyxme fyxme commented Mar 25, 2026

Summary

  • Replace deprecated github.com/nullify-platform/logger with a new internal/logger package that wraps go.uber.org/zap directly. Logs now go to stderr instead of stdout to avoid corrupting piped CLI output. Removes ~30 transitive dependencies (AWS SDK, OTel, Lambda, SSM, etc.)
  • Remove deprecated nullify chat command, the entire internal/chat package, all README references, and the gorilla/websocket dependency

Test plan

  • go build ./... passes
  • go test ./... — 126 tests pass across 16 packages
  • make build && ./bin/cli version — version stamping works via ldflags
  • ./bin/cli status — verified against live instance
  • grep -r "nullify-platform/logger" . — zero stale references
  • grep -ri "\bchat\b" — no residual chat command references
  • go mod why github.com/gorilla/websocket — confirms dependency fully removed

fyxme added 2 commits March 24, 2026 22:50
…internal/logger

The external logger package is being deprecated. Replace it with a thin
internal wrapper around go.uber.org/zap that provides the same API.

- Create internal/logger package wrapping zap directly (~55 lines)
- Logs go to stderr instead of stdout to avoid corrupting piped CLI output
- Use zap.NewDevelopmentConfig() to preserve full zap dev defaults
- Remove no-op OTel tracer calls from internal/auth/login.go
- Update ldflags in Makefile and .goreleaser.yaml
- Remove ~30 transitive dependencies (AWS SDK, OTel, Lambda, etc.)
The chat command is deprecated. Remove the command, the entire
internal/chat package, all README references, and the gorilla/websocket
dependency which was only used by chat.
@fyxme fyxme added the minor Minor version updates (features) label Mar 25, 2026
@dnjg
Copy link
Copy Markdown
Member

dnjg commented Mar 25, 2026

Lgtm just fix the lint

dnjg
dnjg previously approved these changes Mar 25, 2026
…rmatting

Fix errcheck violations by handling errors from os.MkdirAll and os.WriteFile.
Replace WriteString(fmt.Sprintf(...)) with fmt.Fprintf for staticcheck QF1012.
Fix gofmt alignment in generated command files.
Add logger.Close() helper to handle Sync() error cleanly and replace
all defer logger.L(ctx).Sync() calls with defer logger.Close(ctx).
Fix gofmt import ordering across cmd and internal packages.
Fix unchecked buf.ReadFrom in logger test.
@fyxme fyxme enabled auto-merge March 25, 2026 06:52
@fyxme fyxme added this pull request to the merge queue Mar 25, 2026
Merged via the queue into main with commit fff7fa2 Mar 25, 2026
2 checks passed
@fyxme fyxme deleted the refactor/replace-deprecated-logger-and-remove-chat branch March 25, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Minor version updates (features)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants