You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
Is this related to the actions-rs Actions?
If you think it's a problem related to Github Actions in general, use GitHub Community forum instead: https://github.community
Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
Description
First, thanks for creating these actions, super helpful!
In my project, I have a couple of rust files which are there as test resources, however, I want them to be automatically checked by cargo fmt as well. Since they are not attached to any project, I need to pass the file paths directly to rustfmt.
cargo fmt -- tests/resources/**/*.rs --check works perfectly fine from my shell but it appears that this action does not expand glob patterns, which causes the following action to fail.
Workflow code
- name: Run cargo fmt on tests resourcesuses: actions-rs/cargo@v1with:
command: fmtargs: -- tests/resources/**/*.rs --check
Action output
Run actions-rs/cargo@v1
/home/runner/.cargo/bin/cargo fmt -- tests/resources/**/*.rs --check
Error: file `tests/resources/**/*.rs` does not exist
Error: The process '/home/runner/.cargo/bin/cargo' failed with exit code 1
Expected behavior
Glob patterns are expanded and the action checks all files.
Do the checklist before filing an issue:
actions-rs
Actions?If you think it's a problem related to Github Actions in general, use GitHub Community forum instead: https://github.community
Description
First, thanks for creating these actions, super helpful!
In my project, I have a couple of rust files which are there as test resources, however, I want them to be automatically checked by
cargo fmt
as well. Since they are not attached to any project, I need to pass the file paths directly torustfmt
.cargo fmt -- tests/resources/**/*.rs --check
works perfectly fine from my shell but it appears that this action does not expand glob patterns, which causes the following action to fail.Workflow code
Action output
Expected behavior
Glob patterns are expanded and the action checks all files.
Additional context
I found a way around it:
The text was updated successfully, but these errors were encountered: