Skip to content

Conversation

@alexec
Copy link
Contributor

@alexec alexec commented Nov 22, 2025

  • Replace internal keyring wrapper with direct use of github.com/zalando/go-keyring
  • Use replace directive to point to github.com/kitproj/go-keyring fork
  • Update tests to clear keyring before testing missing token scenarios

- Replace internal keyring wrapper with direct use of github.com/zalando/go-keyring
- Use replace directive to point to github.com/kitproj/go-keyring fork
- Update tests to clear keyring before testing missing token scenarios
@alexec alexec requested a review from Copilot November 22, 2025 17:23
@alexec alexec marked this pull request as ready for review November 22, 2025 17:23
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 refactors the token storage mechanism by removing the internal keyring wrapper and using the github.com/zalando/go-keyring library directly, with a replace directive pointing to the github.com/kitproj/go-keyring fork. The changes simplify the codebase by eliminating platform-specific wrapper code while maintaining the same functionality through the upstream library.

Key changes:

  • Removed internal internal/keyring package (wrapper, platform-specific implementations, and tests)
  • Added replace directive to use github.com/kitproj/go-keyring v0.2.8 fork
  • Updated tests to clear keyring state before testing missing token scenarios

Reviewed changes

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

Show a summary per file
File Description
go.mod Added replace directive to use kitproj fork; updated go-keyring version; removed unused dependencies
go.sum Updated checksums for new fork and removed unused dependency entries
main.go Replaced internal keyring import with direct zalando/go-keyring import
main_test.go Added keyring.Delete call and import to ensure clean test state
mcp_test.go Added keyring.Delete call and import to ensure clean test state
internal/keyring/*.go Removed entire internal keyring wrapper package

@alexec alexec enabled auto-merge (squash) November 22, 2025 17:27
@alexec alexec merged commit dca0e65 into main Nov 22, 2025
1 check passed
@alexec alexec deleted the switch-to-keyring-fork branch November 22, 2025 17:31
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.

2 participants