Repository navigation
fix(v3): October 29 nightly fixes and dependency cleanup - #6519
Conversation
Preserve current public dependency versions and release behavior. Retain the established macOS keyring backend after security review to avoid exposing secrets in process arguments and preserve stored credential compatibility.
|
Caution Review failedThe pull request is closed. Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…ightly fixes and dependency cleanup
There was a problem hiding this comment.
🔵 Needs a closer look
The change is an exceptionally large squashed port spanning 95 commits across security-sensitive areas like credential storage, updater key permissions, and download staging, yet native platform execution and full validation remain unperformed, requiring broader quorum review.
No open issues 🎉
8 files not reviewed
v3/examples/android/frontend/package-lock.json: Generated filev3/examples/ios/frontend/package-lock.json: Generated filev3/examples/mobile/frontend/package-lock.json: Generated filev3/internal/generator/testdata/package-lock.json: Generated filev3/internal/runtime/desktop/@wailsio/runtime/package-lock.json: Generated filev3/internal/setupwizard/frontend/package-lock.json: Generated filewebsite/package-lock.json: Generated filewebsite/pnpm-lock.yaml: Generated file
What changed in this PR
This PR ports the 29 October nightly bug-fix and dependency-cleanup work onto public master as a draft. It reconciles three threads: (1) correctness fixes to the Wake build runner, file dialogs, asset server, updater, credentials, semver/changelog handling and Linux file-explorer launching; (2) a large dependency reduction that replaces third‑party libraries (ghw, winicon, icns, lipo, resty, participle, slicer, go-isatty/go-colorable, adrg/xdg, matryer/is, go-cmp) with small internal packages or stdlib/x/* equivalents; and (3) allocation/throughput optimizations with accompanying benchmarks and regression tests. The macOS keyring backend is intentionally retained (now behind a new per‑OS credentialstore abstraction), and the embedded runtime bundles are rebuilt with a Vite-based pipeline replacing esbuild.
Changes:
- New internal packages replace external deps:
userpaths(xdg),hostinfo/reportcopy(ghw/doctor),iconfile/universalbinary(icns/winicon/lipo),credentialstore(per‑OS keyring/wincred/Secret Service),idlreader/typeconstraints(participle/x-exp),releasenotes, andtermlogger. - Behavioral fixes: preserve full Go
test/vet/fmt/install/run/modargument vectors in Wake, propagate COMHRESULTfailures, bound GitHub requests with deadlines, stage downloads before publishing, restrict updater private‑key permissions, and align terminal tables by display width. - Dependency/tooling cleanup: website/svelte/example manifests pruned, runtime bundles rebuilt via
build-embedded.mjs, and test suites migrated totestify/stdlib.
| File | Description |
|---|---|
| v3/internal/wake/cmds/native.go | Preserve vet/install arg vectors; joinTags via strings.Join |
| v3/internal/wake/cmds/shell.go (context) | Routes args into new Args fields for go subcommands |
| v3/internal/wake/cmds/*_test.go, cmds_test.go | New/updated offline-go fixtures; removed obsolete count-parse tests |
| v3/internal/wake/exec/exec.go, *_test.go | RecordGoCmd now takes sources; native-source cache inputs tracked |
| v3/internal/userpaths/*.go, personal.go | New user-path resolver replacing adrg/xdg, per‑OS defaults + user-dirs parsing |
| v3/pkg/application/path.go, path_test.go | Switch path map to userpaths.Resolve() |
| v3/internal/credentialstore/*.go | New per‑OS credential vault; darwin keeps go-keyring, unix uses D-Bus |
| v3/internal/keychain/keychain.go, _test.go | Delegate to credentialstore |
| v3/internal/hostinfo/*.go | New hardware provider replacing ghw in doctor |
| v3/internal/doctor/doctor.go, doctor-ng/hardware.go | Use hostinfo for CPU/GPU/memory |
| v3/internal/reportcopy/*.go | New clipboard writer for doctor reports |
| v3/internal/iconfile/*.go, commands/icons.go | Local ICNS/ICO encoders replacing icns/winicon |
| v3/internal/universalbinary (via tool_lipo.go, _test.go) | Local universal-binary encoder replacing lipo |
| v3/internal/go-common-file-dialog/cfd/hresult*.go, vtblCommonFunc.go, CommonFileDialog_windows.go | Fix unsigned HRESULT compare; release dialogs on config error |
| v3/internal/commands/updater_tool.go, _test.go | Restrict private-key mode before overwrite |
| v3/internal/commands/tool_cp.go, tool_cp_*test.go, msix.go | Streamed copy with mode arg; multi-destination/dir support |
| v3/internal/commands/tool_version.go, _test.go | Big-int-free prerelease bump |
| v3/internal/commands/releasenotes.go, releasenotes/*.go, github/*.go | Split fetch (GetReleaseNotes) from rendering; deadline-bound requests, 10-page tag paging |
| v3/internal/assetserver/*.go, _test.go | Context-aware logging; HTTP-form RequestURI; strconv content length; idempotent-only dev-proxy retries |
| v3/internal/s/s.go | Download to staging dir then atomic rename |
| v3/internal/term/*.go | Move PtermLogger into term; display-width table alignment |
| v3/internal/changelog/*.go, semver/*.go | Allocation-free bullet/line/semver processing + benches |
| v3/internal/webview2/scripts/**, generator/** | Replace participle parser with idlreader; migrate tests off is/require |
| v3/internal/generator/**, collect/predicates.go, config/log.go, flags/bindings.go | typeconstraints term API; testify migration; drop flag byte clone |
| v3/internal/service/template/**, service_test.go | Prune obsolete module reqs; import http/log in generated handler |
| v3/internal/runtime/** | Vite build-embedded.mjs, TypeDoc/vitest env scripts, bundle tests; drop esbuild/rimraf/happy-dom |
| v3/pkg/application/logger_dev*.go, _test.go | x/term/native Windows console-color detection |
| v3/pkg/w32/*_test.go, events_test.go | Migrate tests to testify/require |
| v3/examples/**/go.mod, frontend manifests, jsconfig.json | Swap xdg/go-isatty/go-colorable for x/term; prune unused runtime pins |
| website/* , setupwizard/svelte manifests | pnpm pinning, drop unused deps (clsx, algolia, postcss, tsconfig/svelte) |
Note: the ~30 near-identical example go.mod, jsconfig.json, and package-lock.json edits are grouped above to keep the table readable; each applies the same indirect-dependency swap or unused-runtime removal.
No blocking issues were identified in the diff. Given the breadth, the security-sensitive surface (credential storage, signing-key permissions, download staging), and the author's note that native macOS/Windows execution and full release validation were not run, final approval is best confirmed by a human maintainer.
Review effort: Balanced
Replace the shared unreleased changelog and merge-time writer/revert jobs with release-local notes generated from PRs in the exact tested Git range. Preserve PR links/authors, stable-versus-nightly boundaries, and the same notes in release bodies and the published changelog. Verify input provenance before live release changes and sync weekly sections without losing newer history. Update contributor guidance and reject recreation of the old file. Preserve the existing pending PR wailsapp#6519 entry's exact wording in a cutover seed scoped to its repository and merge commit. Carry it only while that commit belongs to the selected release range, without duplicate entries. Validation on current master: release/releasegate race tests and vet; 14 generator scenarios; 8 workflow checks; changelog validator race tests; strict documentation build and link checks. Real GitHub generation and a release dry run preserve the pending entry exactly once. No release or merge.
Summary
Port the 29 October nightly fixes, dependency cleanup, performance improvements and regression tests onto current public
master. This is a draft for review, not release approval. Bug fixes belong to nightly patches, outside the feature-only v3.1.0 milestone.The source work comprised 95 commits: 30 fixes, 61 performance/maintenance/refactor changes and 4 supporting test changes. The public port is squashed onto public history and reconciles changes already made on
master.Public-base reconciliation and security correction
package.json.tmpl.master; its tests and benchmark are also excluded. No removed website functionality is restored. Pin website installs to pnpm 10.34.7 with a frozen lockfile.Complete list of fixes
Performance and maintenance scope
Reduce direct dependency use in icons/universal binaries, user paths, doctor hardware/PCI reports, generator constraints, WebView2 IDL/download tooling, runtime docs/builds/tests, starter manifests and examples. Optimize semver/changelog processing, terminal widths, Wake cache hashes/build tags, binding flags, content lengths and streaming file copies. Direct dependency removals are not equivalent to transitive graph removals; several dependencies remain indirectly selected, and macOS keyring is intentionally retained.
Security scan and fresh validation
Complete source change inventory
Chronological inventory; the adaptation notes above explain differences in the public port. These are change descriptions, not links to unpublished history.