Unable to run `make server` locally on WSL (Go 1.26.4) – getting `expected 'package', found 'EOF'` errors

i’m working on issue #19969 (UI Search functionality is not working as expected) and trying to set up Meshery locally on Ubuntu 24.04 (WSL2), but I’m stuck while running the backend.
Environment:

  • Windows 11

  • WSL2 + Ubuntu 24.04

  • Node v22.22.3

  • npm v10.9.8

  • Docker v29.1.3

  • Go v1.26.4

What I tried:

  • Cloned the latest Meshery master branch inside WSL

  • Ran make ui-setup successfully

  • Installed Go 1.26.4

  • Verified:

    • go version → go1.26.4

    • go env GOVERSION → go1.26.4

  • Ran:

    • go clean -modcache

    • go mod download

  • Tried running make server

make server fails with errors similar to:

i checked these files manually and they are not empty. package declarations are present, and git status is clean.
i also tried:

  • fresh clone inside wsl filesystem

  • clearing go module cache

  • downloading dependencies again

  • reinstalling go

interestingly, make ui works fine and the frontend starts successfully on localhost:3000, but i’m unable to get the backend running because of the above errors.

my goal is to get meshery server running so that i can reproduce and work on issue #19969.
am i missing something in the setup, or is there any known issue with the current master branch / go toolchain?

the issue is fixed now : - refreshing the terminal wasn’t enough in my case. i found the go module cache was corrupted. after reinstalling go 1.26.4 from the official tarball and clearing all go caches, make server works now.