Skip to content

chore(deps): upgrade MyGo to v0.8.3 - #37

Merged
houko merged 1 commit into
mainfrom
chore/mygo-0.8
Nov 9, 2026
Merged

houko merged 1 commit into
mainfrom
chore/mygo-0.8

Conversation

@houko

@houko houko commented Nov 9, 2026

Copy link
Copy Markdown
Member

Summary

Upgrades github.com/egoist/mygo from v0.7.4 to v0.8.3 (also the pinned mygo CLI tool). breeze-ui, ai-logo/mygo and nodra stay where they are; they compile and pass against v0.8.3.

What 0.8 changes and how Kando is affected

  • Breaking (0.8.0): HandleInput sees every key, modifiers included, with the new InputEvent.Code. Kando has no HandleInput handler, so nothing changes.
  • Behavior: inactive windows fade their accent, Opacity fades a subtree as one, presses and drags follow the primary button only, a cancelled press commits nothing, mygo build no longer ships Go sources from resources/. Kando uses none of the drag or press APIs, and its resources/ only holds icon.png.
  • go tool mygo migrate-ui . finds nothing to migrate, go tool mygo generate leaves the catalogs' accessors unchanged, and go tool mygo i18n check passes (755 messages in 5 languages).
  • 0.8.3 also breaks Korean lines between words instead of between syllables, which helps the new Korean interface.

Test change

Tester.Click became strict in 0.8: it clicks only the element a label names first and refuses when the point would reach another control. breeze.ContentRow labels its row with the same name as the field inside, and the row does not hand clicks to its field, so TestFeedbackSendOpensThePrefilledIssue failed on tt.Click("标题") (deterministically on 0.8.3, never on 0.7.4). A coordinate click on the row's middle still focuses the field in 0.8.3, so the UI is fine; the test now uses a clickRow helper that clicks the row's middle and asserts the field took the focus.

Screenshots

None: all 57 screenshot scenes (KANDO_SCREENSHOTS=… go test -run TestScreenshots) render byte for byte the same on v0.7.4 and v0.8.3.

Test plan

  • go vet ./..., go tool mygo vet ., go tool mygo migrate-ui ., go tool mygo i18n check .
  • CGO_ENABLED=0 go test -count=1 ./packages/core/... ./packages/media/... ./apps/kando/...
  • go tool mygo build apps/kando: the bundle builds with its icon and the five localizations
  • Not exercised by hand in the running app

MyGo 0.8's breaking change is that HandleInput sees every key, modifiers included; Kando has no HandleInput handler, nor the drag, press or terminal APIs whose behavior changed, and migrate-ui finds nothing to migrate. The generated catalogs are unchanged, and every screenshot scene renders byte for byte as with v0.7.4.

Tester.Click now clicks only the element a label names first, and breeze.ContentRow names its row with the same label as its field, so the feedback test clicks the rows' fields through a clickRow helper that checks the field took the focus.
@github-actions github-actions Bot added area: app The app shell and state in apps/kando area: dependencies go.mod, go.sum and go.work files chore Maintenance (chore, build, style, revert) size/S 10 to 99 changed lines labels Nov 9, 2026
@houko
houko merged commit c8afeb8 into main Nov 9, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: app The app shell and state in apps/kando area: dependencies go.mod, go.sum and go.work files chore Maintenance (chore, build, style, revert) size/S 10 to 99 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant