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-migrationsGo 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 tocYou 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 buildFor unit-tests run:
$ make testFor lookout-sdk integration tests (-short will skip tests that require bblfsh):
$ make test-sdk
$ make test-sdk-shortFor lookoutd serve integration tests:
$ make test-jsonIf 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.0In 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.1:8080$ make -f Makefile.web web-serve
- using
create-react-appdev 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 starthttp://127.0.0.1:3000/callback, and navigate to http://127.0.0.1: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-testdummy 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