[GH-ISSUE #324] hashFiles documentation says you can supply multiple paths, but act doesn't let you #226

Closed
opened 2026-03-01 21:41:30 +03:00 by kerem · 3 comments
Owner

Originally created by @doughsay on GitHub (Jul 30, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/324

I'm not sure how new this is, because I know hashFiles used to only allow one path, but the github actions documentation now says you can supply multiple paths: https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#hashfiles

When I try this in act though, I get: [RangeError: expected 1 argument(s); got 3]

My expression is this: ${{ hashFiles('lib/**/*.ex', 'test/**/*.ex', 'mix.lock') }}

EDIT: Another interesting point: in act you can do ${{ hashFiles('{lib/**/*.ex,test/**/*.ex,mix.lock}') }}, but github actions will not recognize the multi-glob pattern.

Originally created by @doughsay on GitHub (Jul 30, 2020). Original GitHub issue: https://github.com/nektos/act/issues/324 I'm not sure how new this is, because I know `hashFiles` used to only allow one path, but the github actions documentation now says you can supply multiple paths: https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#hashfiles When I try this in `act` though, I get: `[RangeError: expected 1 argument(s); got 3]` My expression is this: `${{ hashFiles('lib/**/*.ex', 'test/**/*.ex', 'mix.lock') }}` EDIT: Another interesting point: in `act` you can do `${{ hashFiles('{lib/**/*.ex,test/**/*.ex,mix.lock}') }}`, but github actions will not recognize the multi-glob pattern.
kerem 2026-03-01 21:41:30 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@djbender commented on GitHub (Aug 21, 2020):

I can also confirm that this bug exists in act and that the multi-glob patten works in act as a workaround.

<!-- gh-comment-id:678280353 --> @djbender commented on GitHub (Aug 21, 2020): I can also confirm that this bug exists in `act` and that the multi-glob patten works in `act` as a workaround.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 21, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:713217188 --> @github-actions[bot] commented on GitHub (Oct 21, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Author
Owner

@langston-barrett commented on GitHub (Oct 28, 2020):

This is still an issue.

<!-- gh-comment-id:718191585 --> @langston-barrett commented on GitHub (Oct 28, 2020): This is still an issue.
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#226
No description provided.