go-home server
go-home uses go 1.13 with modules support, but to provide compatibility with no-modules environments, all scripts are expecting to have go-home.io/x under ${GOPATH}/src folder.
For running on MaOS, gmake has to be installed since regular make has version 3.8 which does not support ONESHELL. You can install it using brew:
brew install homebrew/core/makeYou'll need at least nsq running on your machine. You can install it through brew:
brew install nsqThen start it:
nsqd -broadcast-address=127.0.0.1Checkout both server and providers repos into ${GOPATH}/src/go-home.io/x folder, place your config files under server/configs. Minimal required configuration is:
system: bus
provider: nsq
server: 127.0.0.1:4150
---
system: go-home
provider: master
port: 8000
delayedStart: 0
---
system: go-home
provider: worker
name: worker-1Start both worker and master by running:
gmake run-worker
gmake run-only-serverTo run all required validations simply run:
gmake gitWhich includes:
dep-ensure-- runninggo mod tidygenerate-- auto-generating all required fileslint-- running all configured linterstest-local-- running all available tests
x/tools/cmd/goimports doesn't work well with modules, sometimes it removes correct package. To bypass this install this package without modules, e.g.:
GO111MODULE=off go get github.com/vkorn/go-miiomonkey patching from an IDE must be executed with an extra params:
-gcflags=-l