As all source{d} projects, this project follows the source{d} Contributing Guidelines.
In addition to the source{d} Contributing Guidelines, this project follows the following guidelines.
Before submitting a pull request make sure all the generated code changes are also committed.
To generate go code from kallax models, run:
$ go generate ./...
To update embedded migrations with the new files:
$ make dependencies
$ kallax migrate --input ./store/models/ --out ./store/migrations --name <name>
$ make pack-migrations
Go dependencies are managed with dep. Use make godep
to make sure the vendor
directory is up to date, and commit any necessary changes.
Please update the readme Table of Contents with:
$ make toc
You can separately build the binaries provided by source{d} Lookout; the binaries will be stored under build/bin
directory.
$ make build
$ make -f Makefile.sdk build
For unit-tests run:
$ make test
For lookout-sdk
integration tests (-short
will skip tests that require bblfsh):
$ make test-sdk
$ make test-sdk-short
For lookoutd serve
integration tests:
$ make test-json
If you want to contribute in source{d} Lookout Web Interface, you should consider the following:
Node.js >=8
is required; you can check which version of node
do you have, running:
$ node -v
v10.15.0
In case you want to locally run the web interface from sources, you can choose one of the following:
- using web assets from binaries (embeded by
esc
), that will require you to restart the server everytime you change any web asset.And navigate to http://127.0.0.0:8080$ make -f Makefile.web web-serve
- using
create-react-app
dev server, with live reload for web assets changes, running in separated terminals the backend:and the frontend:$ make -f Makefile.web web-start
Configure the GitHub App authorization callback URL to$ make -f Makefile.web web-dependencies # if you didn't do it yet $ yarn --cwd frontend start
http://127.0.0.0:3000/callback
, and navigate to http://127.0.0.0:3000
For unit-tests over the Web Interface frontend:
$ make -f Makefile.web web-dependencies # if you didn't do it yet
$ make -f Makefile.web web-test
dummy
analyzer is part of the source{d} Lookout codebase but its release cycle is managed independently from the main one.
dummy
analyzer container images will be published everytime it's created a new tag with the dummy
prefix, e.g. dummy-v0.0.1
It can be built locally running:
$ make -f Makefile.dummy build