Skip to content

Documented "basedirs" config file directive not recognized #2626

@iskunk

Description

@iskunk

I am making use of the basedirs directive in the configuration file, exactly as described in the doc, yet sccache 0.13.0 fails to recognize it:

 0:27.08 error: process didn't exit successfully: `/usr/local/bin/sccache /bin/rustc-1.89 -vV` (exit status: 2)
 0:27.08 --- stderr
 0:27.08 sccache: error: Failed to load config file
 0:27.08 sccache: caused by: Failed to load toml config file from /etc/sccache.conf
 0:27.08 sccache: caused by: TOML parse error at line 4, column 1
 0:27.08   |
 0:27.08 4 | basedirs = ["/home/build"]
 0:27.08   | ^^^^^^^^
 0:27.08 unknown field `basedirs`, expected one of `cache`, `dist`, `server_startup_timeout_ms`

My config file looks like this:

basedirs = ["/home/build"]

[cache.disk]
dir = "/home/sccache"
size = 10737418240  # 10 GB

[cache.disk.preprocessor_cache_mode]
hash_working_directory = false

It is located at /etc/sccache.conf, and I am pointing SCCACHE_CONF to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions