shamanec / GADS

Simple device farm for remote control of devices and Appium test execution on iOS/Android
MIT License
74 stars 16 forks source link

hub/hub.go:18:12: pattern gads-ui/build: no matching files found #131

Closed pbezpal closed 6 days ago

pbezpal commented 6 days ago

Hello! When I run command go build . I get error message hub/hub.go:18:12: pattern gads-ui/build: no matching files found

My log

userj@MacBook-Pro-Pavel GADS % go build .
go: downloading github.com/spf13/cobra v1.8.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading go.mongodb.org/mongo-driver v1.12.1
go: downloading github.com/sirupsen/logrus v1.9.3
go: downloading github.com/Masterminds/semver v1.5.0
go: downloading github.com/danielpaulus/go-ios v1.0.135
go: downloading github.com/pelletier/go-toml/v2 v2.0.7
go: downloading github.com/gin-contrib/cors v1.4.0
go: downloading github.com/gin-gonic/gin v1.9.0
go: downloading github.com/gobwas/ws v1.4.0
go: downloading github.com/gin-contrib/static v0.0.1
go: downloading golang.org/x/sys v0.21.0
go: downloading github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d
go: downloading github.com/gobwas/pool v0.2.1
go: downloading github.com/gobwas/httphead v0.1.0
go: downloading github.com/google/uuid v1.6.0
go: downloading github.com/gin-contrib/sse v0.1.0
go: downloading github.com/mattn/go-isatty v0.0.18
go: downloading golang.org/x/net v0.26.0
go: downloading golang.org/x/crypto v0.24.0
go: downloading github.com/golang/snappy v0.0.1
go: downloading github.com/klauspost/compress v1.13.6
go: downloading github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe
go: downloading github.com/go-playground/validator/v10 v10.12.0
go: downloading github.com/ugorji/go/codec v1.2.11
go: downloading google.golang.org/protobuf v1.33.0
go: downloading github.com/xdg-go/scram v1.1.2
go: downloading github.com/xdg-go/stringprep v1.0.4
go: downloading golang.org/x/sync v0.7.0
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/grandcat/zeroconf v1.0.0
go: downloading github.com/quic-go/quic-go v0.40.1-0.20231203135336-87ef8ec48d55
go: downloading github.com/songgao/water v0.0.0-20200317203138-2b4b6d7c09d8
go: downloading github.com/tadglines/go-pkgs v0.0.0-20210623144937-b983b20f54f9
go: downloading golang.org/x/exp v0.0.0-20230725093048-515e97ebf090
go: downloading gvisor.dev/gvisor v0.0.0-20240405191320-0878b34101b5
go: downloading howett.net/plist v1.0.1
go: downloading go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352
go: downloading software.sslmate.com/src/go-pkcs12 v0.4.0
go: downloading golang.org/x/text v0.16.0
go: downloading github.com/go-playground/universal-translator v0.18.1
go: downloading github.com/leodido/go-urn v1.2.3
go: downloading github.com/cenkalti/backoff v2.2.1+incompatible
go: downloading github.com/xdg-go/pbkdf2 v1.0.0
go: downloading github.com/miekg/dns v1.1.61
go: downloading github.com/google/btree v1.1.2
go: downloading golang.org/x/time v0.5.0
go: downloading github.com/pierrec/lz4 v2.6.1+incompatible
go: downloading github.com/go-playground/locales v0.14.1
hub/hub.go:18:12: pattern gads-ui/build: no matching files found
shamanec commented 6 days ago

Yeah, if you want to build from source instead of using the prebuilt binaries you need to build the UI beforehand. You need to go to hub/gads-ui and execute npm install, then npm run build - after that you can use go build . in the main folder and it should work 👌 This is mentioned on the main README page in the setup section :)

pbezpal commented 6 days ago

Thanks