Skip to content

fix(packages/cli): handle Rspack cache save failures in dev #141

Description

@zrosenbauer

Summary

On macOS, ciderpress dev intermittently prints a native Rspack persistent-cache save error and disables the cache for the session.

Rspack persistent cache save failed: Rspack FS Error:IO error: Directory not empty (os error 66)
Persistent cache has been disabled for this session.

The site continues to build and hot-reload, but the warning is noisy and warm-start caching is lost.

Known cause

Rspack's native cache layer fails during an atomic directory swap. The message is written directly to stderr, so the JavaScript logger configuration cannot suppress it safely.

Acceptance criteria

  • Confirm whether the current Rspack version still reproduces the failure on Apple Silicon.
  • Prefer fixing or disabling the failing dev cache path over filtering stderr.
  • Dev startup and hot reload remain correct after the change.
  • The known-benign failure no longer pollutes normal terminal output.
  • Document any warm-start performance tradeoff.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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