https://github.com/typedb/bazel-local
A wrapper to run bazel with locally overriden dependencies
https://github.com/typedb/bazel-local
Last synced: over 1 year ago
JSON representation
A wrapper to run bazel with locally overriden dependencies
- Host: GitHub
- URL: https://github.com/typedb/bazel-local
- Owner: typedb
- Created: 2020-06-22T13:01:30.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-06T10:26:09.000Z (about 6 years ago)
- Last Synced: 2025-01-22T18:09:52.662Z (over 1 year ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `bazel-local`
A wrapper to run `bazel` with locally overriden dependencies.
## Intallation
`curl -sSf https://raw.githubusercontent.com/graknlabs/bazel-local/master/install.sh | sh`
## Usage
Use the `bazel-local` command in place of `bazel`.
To enable local dependency overriding, create a `.local_deps.toml` in the root of your bazel workspace. An example is shown:
```toml
# Override git_repository/http_archive with local bazel workspaces at the given directory.
# This works recursively, respecting their local `.local_deps.toml` configuration.
[local_repositories]
graknlabs_grakn_common = "../common"
# Override a http_file with the output of the given [, ]
[http_files]
graknlabs_console = ["../console", "//:console-deps"]
```
You should add `.local_deps*` to your `.gitignore`.