Hi.
I want to compile lora-app-server on windows 10 and I use Gnuwin32 for this. All commands are working but when I use make build
command,I have following error:
"Generating combined Swagger JSON" 'GOOS' is not recognized as an internal or external command, operable program or batch file. make: *** [static/swagger/api.swagger.json] Error 1
I have following message when use make requirements ui-requirements
echo “Installing development tools”
“Installing development tools”
go get -u github.com/golang/lint/golint
go get -u github.com/brocaar/grpc-gateway/protoc-gen-grpc-gateway
go get -u github.com/brocaar/grpc-gateway/protoc-gen-swagger
go get -u github.com/golang/protobuf/protoc-gen-go
go get -u GitHub - elazarl/go-bindata-assetfs: Serves embedded files from `jteeuwen/go-bindata` with `net/http`…
go get -u GitHub - jteeuwen/go-bindata: Hard fork of jteeuwen/go-bindata because it disappeared, Please refer to issues#5 for details.…
go get -u GitHub - kisielk/errcheck: errcheck checks that you checked errors.
go get -u GitHub - smartystreets/goconvey: Go testing in the browser. Integrates with `go test`. Write behavioral tests in Go.
go get -u The Go Programming Language
go get -u github.com/golang/dep/cmd/dep
go get -u GitHub - goreleaser/goreleaser: Deliver Go binaries as fast and easily as possible
dep ensure -v
“Installing UI requirements”
npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})up to date in 67.691s
When use make clean
:
- “Cleaning up workspace”
Finally when I use make build
,I have an error:
“Building ui”
new-ui@0.1.0 build C:\Users\MRT\go\src\github.com\brocaar\lora-app-server\ui
react-scripts buildCreating an optimized production build…
Compiled successfully.File sizes after gzip:
782.27 KB build\static\js\main.ef036079.js
9.79 KB build\static\css\main.1cf097fa.cssThe bundle size is significantly larger than recommended.
Consider reducing it with code splitting: create-react-app/packages/react-scripts/template/README.md at main · facebook/create-react-app · GitHub
You can also analyze the project dependencies: create-react-app/packages/react-scripts/template/README.md at main · facebook/create-react-app · GitHubThe project was built assuming it is hosted at the server root.
You can control this with the homepage field in your package.json.
For example, add this to build it for GitHub Pages:“homepage” : “http://myname.github.io/myapp”,
The build folder is ready to be deployed.
You may serve it with a static server:npm install -g serve
serve -s buildFind out more about deployment here:
“Generating combined Swagger JSON”
‘GOOS’ is not recognized as an internal or external command,
operable program or batch file.
make: *** [static/swagger/api.swagger.json] Error 1
Does anyone have suggestion how I fix this?