[PR #1667] [MERGED] fix: return error instead of panic when walking in a nonexistent dir #2061

Closed
opened 2026-03-01 21:53:50 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/1667
Author: @wolfogre
Created: 3/7/2023
Status: Merged
Merged: 3/8/2023
Merged by: @mergify[bot]

Base: masterHead: bugfix/hashfiles_panic


📝 Commits (2)

  • 7965a67 fix: return err in walk
  • f8fc7ad Merge branch 'master' into bugfix/hashfiles_panic

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 pkg/exprparser/functions.go (+4 -0)

📄 Description

fi fs.FileInfo will be nil when err error isn't.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/1667 **Author:** [@wolfogre](https://github.com/wolfogre) **Created:** 3/7/2023 **Status:** ✅ Merged **Merged:** 3/8/2023 **Merged by:** [@mergify[bot]](https://github.com/apps/mergify) **Base:** `master` ← **Head:** `bugfix/hashfiles_panic` --- ### 📝 Commits (2) - [`7965a67`](https://github.com/nektos/act/commit/7965a674ef618647bd5cb4bf5bac05cbf5ef4c09) fix: return err in walk - [`f8fc7ad`](https://github.com/nektos/act/commit/f8fc7ad382cc4426f996d89a3b5e4ae0aa5ec6c2) Merge branch 'master' into bugfix/hashfiles_panic ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `pkg/exprparser/functions.go` (+4 -0) </details> ### 📄 Description `fi fs.FileInfo` will be nil when `err error` isn't. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:53:50 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
starred/act#2061
No description provided.