Skip to content

Commit

Permalink
Fix: Example config for local filesystem caching (#20844)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lowvoltage authored Apr 27, 2024
1 parent e6fa3af commit 1962683
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1962683

Please sign in to comment.