Skip to content

Conversation

@rgarcia
Copy link
Contributor

@rgarcia rgarcia commented Jan 8, 2026

Summary

  • Update Go SDK import from github.com/onkernel/kernel-go-sdk to github.com/kernel/kernel-go-sdk v0.25.0
  • Update Homebrew tap references from onkernel/tap/kernel to kernel/tap/kernel
  • Add smart detection for users on the old Homebrew tap who need different upgrade instructions

Details

Homebrew tap migration

Users who installed via the old onkernel/tap (versions < 0.13.0) need to uninstall and reinstall from the new kernel/tap. The CLI now detects this by checking the version in the Homebrew Cellar path:

  • Old tap detected (< 0.13.0): Suggests brew uninstall kernel && brew install kernel/tap/kernel
  • New tap (≥ 0.13.0): Suggests brew upgrade kernel/tap/kernel

Go SDK update

All imports updated from github.com/onkernel/kernel-go-sdk to github.com/kernel/kernel-go-sdk v0.25.0.

Files changed

  • pkg/update/check.go - Core logic for version detection and upgrade suggestions
  • pkg/util/client.go - Uses dynamic upgrade command for API version mismatch errors
  • cmd/invoke.go - Uses dynamic upgrade command in troubleshooting tips
  • All other Go files - SDK import path updates

Test plan

  • go build ./... passes
  • go test ./... passes
  • Manual test on macOS with old tap installed (version < 0.13.0) - should suggest uninstall + reinstall
  • Manual test on macOS with new tap installed (version ≥ 0.13.0) - should suggest upgrade

Note

Migrates references from the old org to the new kernel org and updates upgrade guidance logic.

  • Go SDK/org migration: Replace github.com/onkernel/kernel-go-sdk with github.com/kernel/kernel-go-sdk and bump to v0.25.0 across code and tests; update go.mod/go.sum
  • Homebrew tap migration: Update tap refs to kernel/tap/kernel; add smart detection in pkg/update/check.go (SuggestUpgradeCommand, Homebrew tap/version checks) to suggest uninstall/reinstall for old tap or upgrade for new tap
  • Dynamic upgrade messaging: Use update.SuggestUpgradeCommand() in cmd/invoke.go and pkg/util/client.go instead of hardcoded brew commands
  • Minor cleanups: fix SDK doc link and import paths throughout

Written by Cursor Bugbot for commit 5e7ff13. This will update automatically on new commits. Configure here.

- Update Go SDK import from github.com/onkernel/kernel-go-sdk to
  github.com/kernel/kernel-go-sdk v0.25.0
- Update Homebrew tap references from onkernel/tap to kernel/tap
- Add detection for users on old tap (version < 0.13.0) who need to
  uninstall and reinstall rather than just upgrade
- Make upgrade suggestions dynamic based on installation method
@rgarcia rgarcia requested a review from tnsardesai January 8, 2026 19:18
Copy link
Contributor

@tnsardesai tnsardesai left a comment

Choose a reason for hiding this comment

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

Looks good!

But aren't the new instructions only on the latest cli release, so users on the old cli still won't see this message. Whats the release plan?

I think you have to do a release for 0.12.6 to onkernel/tap with the new instructions. Once a user upgrades to that they will see the new instructions to user kernel/tap

@rgarcia
Copy link
Contributor Author

rgarcia commented Jan 8, 2026

yeah i'm setting up a new onkernel github org and homebrew-tap repo to do something like this

@tnsardesai
Copy link
Contributor

tnsardesai commented Jan 8, 2026

yeah i'm setting up a new onkernel github org and homebrew-tap repo to do something like this

oof thats annoying

@rgarcia rgarcia merged commit 54b919a into main Jan 8, 2026
2 checks passed
@rgarcia rgarcia deleted the rgarcia/migrate-to-kernel-org branch January 8, 2026 19:42
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