From 1962683486e67e84f0112654fa50666025a6392f Mon Sep 17 00:00:00 2001 From: Dimitar Kovachev Date: Sat, 27 Apr 2024 07:29:53 +0300 Subject: [PATCH] Fix: Example config for local filesystem caching (#20844) Using the original config snippet on a `pants` v.2.20 system results in: > OptionsError: Value `file:///path/to/cache` from the `[GLOBAL].remote_store_address` option is invalid: it doesn't have a scheme that is supported by provider `reapi` from the `[GLOBAL].remote_provider` option. > > Did you mean to use a provider that does support this scheme (`experimental-file`) or to use a scheme that is supported by this provider (`grpc://`, `grpcs://`)? This is because the first key should be [`remote_provider`](https://www.pantsbuild.org/2.20/reference/global-options#remote_provider) instead --- .../using-pants/remote-caching-and-execution/remote-caching.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/using-pants/remote-caching-and-execution/remote-caching.mdx b/docs/docs/using-pants/remote-caching-and-execution/remote-caching.mdx index eb604b2cdda..f22a6c470c1 100644 --- a/docs/docs/using-pants/remote-caching-and-execution/remote-caching.mdx +++ b/docs/docs/using-pants/remote-caching-and-execution/remote-caching.mdx @@ -88,7 +88,7 @@ To read and write the cache to `/path/to/cache`, you will need to configure `pan ```toml [GLOBAL] -remote_store_provider = "experimental-file" +remote_provider = "experimental-file" remote_store_address = "file:///path/to/cache" remote_cache_read = true remote_cache_write = true