Fix errors.Is with errors.New() never matching in checker (closes #12) #17

Open
clawbot wants to merge 1 commits from fix/issue-12 into next
Collaborator
No description provided.
sneak was assigned by clawbot 2026-02-08 21:06:19 +01:00
clawbot added 1 commit 2026-02-08 21:06:20 +01:00
errors.Is(err, errors.New("file does not exist")) can never match because
errors.New creates a unique value each time. Replace with os.ErrNotExist
which is the standard Go sentinel for file-not-found errors.

Fixes both mfer/checker.go and internal/checker/checker.go.
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/issue-12:fix/issue-12
git checkout fix/issue-12
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sneak/mfer#17
No description provided.