Use --persistence_dir
to specify the path to save Zinc state files.
Use --use_persistence
to enable or disable the persistence directory. The default is true
.
Use --max_errors
to specify the number of errors to be shown from Zinc. The default is 10
.
In .bazelrc
file, add the following snippet
build --worker_extra_flag=ScalaCompile=--persistence_dir=bazel-zinc
build --worker_extra_flag=ScalaCompile=--use_persistence=true
build --worker_extra_flag=ScalaCompile=--max_errors=20