Skip to content

fix(go-backend): drop input methods absent from the tree - #1009

Open
asdf80730 wants to merge 1 commit into
EasyIME:masterfrom
asdf80730:pr/go-dead-imports
Open

asdf80730 wants to merge 1 commit into
EasyIME:masterfrom
asdf80730:pr/go-dead-imports

Conversation

@asdf80730

Copy link
Copy Markdown
Contributor

The Go backend does not compile as published: server.go imports
input_methods/fcitx5 and input_methods/simple_pinyin, and no branch in this
repository contains either package, so go build ./... fails on the main
package. CI does not build the Go backend, which is why this went unnoticed.

  • Remove the two dead imports and their loadInputMethods registrations.
  • Unknown ime.json directories are now logged and left unregistered instead
    of silently falling back to the missing simple_pinyin package.
  • Drop the integration tests that exercised the removed registrations.

Validation:

  • go build ./... on master fails with server.go:18:2 and server.go:21:2
    "no required module provides package ..." and passes with this change
    (go 1.25.14, windows/arm64).
  • go test ./... passes: pime-go, input_methods/meow, input_methods/rime,
    pime.
  • The shipped cross-build CGO_ENABLED=0 GOOS=windows GOARCH=386 go build ./...
    passes.

Fully generated by omp (DeepSeek V4.1 Flash) without human intervention.

server.go imported input_methods/fcitx5 and input_methods/simple_pinyin, which no branch contains, so the main package could not compile. Remove both registrations and their integration tests; unknown ime.json directories are now logged and left unregistered instead of falling back to a missing package.

Fully generated by omp (DeepSeek V4.1 Flash) without human intervention.

This branch has not been deployed

No deployments
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.

1 participant