Topics

Go Monorepo Build

Drasko DRASKOVIC <drasko@...>
 

Hi all,
I've fixed compilation and did some slight modifications to Makefile
(you'll see the PRs).

I can now launch:

drasko@Marx:~/go/src/github.com/edgexfoundry/edgex-go$ make -j 8
CGO_ENABLED=0 go build -ldflags "-X
github.com/edgexfoundry/edgex-go.Version=0.5.0" -o
/home/drasko/go/src/github.com/edgexfoundry/edgex-go/build/export-client
./cmd/export-client
CGO_ENABLED=1 go build -ldflags "-X
github.com/edgexfoundry/edgex-go.Version=0.5.0" -o
/home/drasko/go/src/github.com/edgexfoundry/edgex-go/build/export-distro
./cmd/export-distro
CGO_ENABLED=0 go build -ldflags "-X
github.com/edgexfoundry/edgex-go.Version=0.5.0" -o
/home/drasko/go/src/github.com/edgexfoundry/edgex-go/build/core-metadata
./cmd/core-metadata
CGO_ENABLED=1 go build -ldflags "-X
github.com/edgexfoundry/edgex-go.Version=0.5.0" -o
/home/drasko/go/src/github.com/edgexfoundry/edgex-go/build/core-data
./cmd/core-data
CGO_ENABLED=0 go build -ldflags "-X
github.com/edgexfoundry/edgex-go.Version=0.5.0" -o
/home/drasko/go/src/github.com/edgexfoundry/edgex-go/build/core-command
./cmd/core-command

And in a matter of seconds find all current edgex-go microservices compiled:

drasko@Marx:~/go/src/github.com/edgexfoundry/edgex-go$ ls build/
core-command core-data core-metadata export-client export-distro


This is starting to be really confortable dev environment, great work
on this monorepo folks. I am sure that this will lower the entry
barrier for community committers.

Best regards,
Drasko DRASKOVIC
Mainflux Author and Technical Advisor

www.mainflux.com | Industrial IoT Cloud
-------------------------------------------------------------------
Engineering Division | Paris, France

LinkedIn: https://www.linkedin.com/in/draskodraskovic
Twitter: @draskodraskovic