Skip to content

build(desktop): move to MyGo v0.9.0 - #192

Merged
bketelsen merged 1 commit into
mainfrom
bk/mygo-v0.9.0
Nov 11, 2026
Merged

bketelsen merged 1 commit into
mainfrom
bk/mygo-v0.9.0

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Summary

Moves the native desktop app from the MyGo fork's integration/frostyard (v0.8.3 and three pull requests) to MyGo v0.9.0, which has egoist/mygo#1654 (Buffer.EditRemote) and #1655 (State.SetReplacements).

  • go.mod requires github.com/egoist/mygo v0.9.0, replaced by github.com/bketelsen/mygo v0.8.4-0.20261111112850-24c98d3547ea: the fork's bk/editor-blocks-89d18f at 24c98d35, which is v0.9.0 plus editor: show elements between lines egoist/mygo#1662 (elements between lines) and nothing else. The fork has no v0.9.0 tag, so its pseudo-version reads v0.8.4. integration/frostyard is retired.
  • The replace goes once #1662 is in a MyGo release: then go.mod requires that release and drops the replace (and make verify's frostui step with it). The comment in go.mod, plan 0009 and AGENTS.md say so.
  • packaging/flatpak/go-sources.json is regenerated.
  • The frostui pin is unchanged: frostui has no tag newer than its pseudo-version.

What v0.9.0 changes for the app

I read the v0.9.0 notes and the commits since v0.8.3. No code here needs to change:

  • SQLite (the only breaking change): the app doesn't use MyGo's SQLite plugin. notesd uses modernc.org/sqlite.
  • Quit handlers at session end run on Windows and macOS only. On Linux, MyGo still gets SIGTERM at logout and quits like Quit, through the window's OnClose, which saves first. That's the same path as before.
  • Focus scrolls the element into view: the editor's Focus isn't inside an outer scroll, and the fields that use AutoFocus (a rename in Files, a new property, dialogs) are meant to be seen.
  • Glyph positions on Linux, wrapped rows, highlighting: the editor, live preview and window tests pass unchanged.
  • Outlines and lists do less per frame: the 10,000-note tree's frame went from about 360 µs to 258 µs at the median.
  • Editor: Inlay.Trailing (end-of-line widgets) is for inlays. Live preview uses the fork's Replacement and Block, which are unchanged.
  • ListState.Choose is new. It could replace the hover check in Files' choose (desktop: choosing a Files row depends on the pointer being over it #169). That's left for that issue.

Risk tier

Risk tier: 2 — a dependency change under the native app, with no code change. No path in .github/risk-paths.json matches: go-sources.json isn't listed, and the Flatpak manifest is unchanged.

Docs housekeeping

  • Plan 0009's fork paragraph and AGENTS.md's module list name v0.9.0 and the replace's end.

Verification

  • make check green (host)
  • make flatpak-sources run, for a change to go.mod or go.sum
  • make vulncheck: no vulnerabilities found
  • go test -race over ./internal/desktop/... and ./internal/render/: green
  • make desktop-build: green
  • Typing benchmark: 2.6 ms a keystroke in source mode, 9.0 ms in live preview (plan 0009 records 2.3 ms and 8 ms on v0.8.3 and the fork)
  • make desktop-evidence on generated vaults: the 10,000-note tree at a median of 258 µs (worst 310 µs), the switcher at 5.2 ms (worst 11.0 ms), and a phone edit reaches the desktop in 7.7 ms
  • make desktop-smoke didn't run here, because the host has no xvfb-run. CI's desktop job runs it.

Require egoist/mygo v0.9.0, which has egoist/mygo#1654 and #1655, and
replace it with the fork's bk/editor-blocks-89d18f at 24c98d35: v0.9.0
plus #1662, nothing else. The replace goes once #1662 is in a release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant