Skip to content

nix flake check failed, couldn't open cache #370

@0komo

Description

@0komo

Describe the bug

error: builder for '/nix/store/ybvrra9ha5b3bb714csld0hwm2j2r9lz-check-formatting.drv' failed with exit code 1;
       last 1 log lines:
       > Error: failed to open cache: could not resolve local path for the cache: could not create any of the following paths: [/homeless-shelter/.cache/treefmt/eval-cache]
       For full logs, run 'nix log /nix/store/ybvrra9ha5b3bb714csld0hwm2j2r9lz-check-formatting.drv'.

To Reproduce

Steps to reproduce the behavior:

  1. Add formatting = (inputs.treefmt-nix.lib.evalModule pkgs ./treefmt.nix).config.build.check to checks output.
  2. Run nix flake check.

Expected behavior

nix flake check runs successfully.

System information

NixOS Unstable (25.11)

Additional context

-

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions