How to build https://github.com/docker/docker-ce on osx

I want to debug the docker client cli, but I couldn’t figure how to build docker-ce locally on my Mac (10.14.1)