Skip to content

Upgrade bubbletea, lipgloss, and bubbles to v2; require Go 1.25.0#5

Merged
topfunky merged 2 commits intomainfrom
copilot/upgrade-bubbletea-to-v2
Mar 18, 2026
Merged

Upgrade bubbletea, lipgloss, and bubbles to v2; require Go 1.25.0#5
topfunky merged 2 commits intomainfrom
copilot/upgrade-bubbletea-to-v2

Conversation

Copy link
Contributor

Copilot AI commented Mar 15, 2026

Migrates from the github.com/charmbracelet/* v1 packages to the charm.land/*/v2 vanity-domain packages, following the Bubble Tea v2 upgrade guide. CI is updated to target Go 1.25.0.

API changes

  • Import paths: github.com/charmbracelet/{bubbletea,lipgloss,bubbles}charm.land/{bubbletea,lipgloss,bubbles}/v2
  • View() return type: stringtea.View; all returns wrapped with tea.NewView(...)
  • Key messages: tea.KeyMsgtea.KeyPressMsg
  • Color types: lipgloss.TerminalColor removed in v2; parseColor/highContrastColor now return color.Color (image/color)
// Before
func (m Model) View() string {
    return m.containerStyle.Render(content)
}
case tea.KeyMsg:

// After
func (m Model) View() tea.View {
    return tea.NewView(m.containerStyle.Render(content))
}
case tea.KeyPressMsg:

Infrastructure

  • go.mod: bumped to go 1.25.0 (required by charm.land/lipgloss/v2)
  • CI workflows (ci.yml, release.yml): go-version: stablego-version: '1.25.0'
Original prompt

This section details on the original issue you should resolve

<issue_title>Upgrade bubbletea</issue_title>
<issue_description>Upgrade as shown at https://github.com/charmbracelet/bubbletea/blob/main/UPGRADE_GUIDE_V2.md

Ensure that all CI actions run successfully using go 1.25.0</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: topfunky <26+topfunky@users.noreply.github.com>
Copilot AI changed the title [WIP] [ISSUE-123] Upgrade bubbletea as per guideline Upgrade bubbletea, lipgloss, and bubbles to v2; require Go 1.25.0 Mar 15, 2026
Copilot AI requested a review from topfunky March 15, 2026 01:55
@topfunky topfunky marked this pull request as ready for review March 18, 2026 23:07
@topfunky topfunky merged commit 2b23a57 into main Mar 18, 2026
2 checks passed
@topfunky topfunky deleted the copilot/upgrade-bubbletea-to-v2 branch March 18, 2026 23:08
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.

Upgrade bubbletea

2 participants