screego / server

screen sharing for developers https://screego.net/
https://app.screego.net
GNU General Public License v3.0
7.76k stars 555 forks source link

pattern build: no matching files found #114

Closed wilk3ns closed 2 years ago

wilk3ns commented 2 years ago

There's a problem in a project, saying "pattern build: no matching files found go list" I use Go version 1.17.5

jmattheis commented 2 years ago

Did you follow the build docs? https://screego.net/#/development?id=build

wilk3ns commented 2 years ago

Sure I did. It is not my first time playing with this repo. Last time it worked well. I suspect it is because of updated go version

jmattheis commented 2 years ago

have you ran yarn build inside the ui directory?

wilk3ns commented 2 years ago

Sure I did, the bug has nothing to do with the front end anyway, imo but it works ok

jmattheis commented 2 years ago

?!?, so it works now?

wilk3ns commented 2 years ago

Problem related to go code. Yarn builds js front end. Has nothing to do with go.

jmattheis commented 2 years ago

Are you sure? The error is that there is no build directory in the ui folder.

$ rm ui/build -rf
$ go build -o screego .
ui/serve.go:13:12: pattern build: no matching files found
$ (cd ui && yarn build)
yarn run v1.22.17
$ react-scripts --max-old-space-size=3000 build
Creating an optimized production build...
Compiled successfully.

File sizes after gzip:

  144.46 KB  build/static/js/2.1c162509.chunk.js
  6.99 KB    build/static/js/main.2be10f68.chunk.js
  767 B      build/static/js/runtime-main.b0612058.js
  100 B      build/static/css/main.ff1cb46a.chunk.css

The project was built assuming it is hosted at ./.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.

Find out more about deployment here:

  https://cra.link/deployment

Done in 8.87s.
$ go build -o screego .
$ ll screego
.rwxr-xr-x 17M jm  4 Jan 19:42 screego