简体   繁体   中英

How can I optionally override repository dependencies in Bazel?

Is it possible to optionally load a file like "WORKSPACE.user.bazel" from my main "WORKSPACE.bazel" file but only if that file exists?

I'd like to override certain dependencies during development only and not check in the WORKSPACE.user.bazel file.

--override_repository seems to do the job. See also this .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM