Skip to content

fix: propagate errors from CacheOnReadFs.Open#601

Open
leno23 wants to merge 1 commit into
spf13:masterfrom
leno23:fix/cache-on-read-open-errors-116
Open

fix: propagate errors from CacheOnReadFs.Open#601
leno23 wants to merge 1 commit into
spf13:masterfrom
leno23:fix/cache-on-read-open-errors-116

Conversation

@leno23

@leno23 leno23 commented May 17, 2026

Copy link
Copy Markdown

Summary

Fixes #116.

CacheOnReadFs.Open no longer ignores errors from base.Open when opening unioned directories. Both base and layer errors are returned to callers instead of constructing a potentially invalid UnionFile.

Test plan

  • go test ./...

Fixes spf13#116.

Return errors from base and layer Open calls instead of
ignoring the base error when opening unioned directories.

Co-authored-by: Cursor <cursoragent@cursor.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@spf13

spf13 commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Thanks for these contributions. Before we can review and merge, you'll need to sign the Contributor License Agreement (CLA). Please do so and then let us know — we'll pick up the review from there.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CacheOnReadFs.Open() is dropping errors

3 participants