-
-
Notifications
You must be signed in to change notification settings - Fork 912
ignore_error not working on new built-in cp command #2466
Copy link
Copy link
Closed
Labels
dep: mvdan/shIssues related to the upstream interpreter used by Task.Issues related to the upstream interpreter used by Task.dep: u-root/u-rootIssues related to the upstream core utils used by Task.Issues related to the upstream core utils used by Task.
Description
Activity
Metadata
Metadata
Assignees
Labels
dep: mvdan/shIssues related to the upstream interpreter used by Task.Issues related to the upstream interpreter used by Task.dep: u-root/u-rootIssues related to the upstream core utils used by Task.Issues related to the upstream core utils used by Task.
Type
Fields
No fields configured for bug.
Description
cpcommand to copy a file that may or may not exist, with theignore_error: trueproperty set on thecmd:scopecpcommand errors to be suppressedcperrors were not suppressed and tasks fail-fis used or not.powershellbefore thecpcommand works as expected even if the powershell command fails.This task is just a best-effort file copy for some testing, and some files may not exist for now, and simply suppressing the error is the simplest solution for now.
Example error
Version
3.45.4
Operating system
Windows
Experiments Enabled
None
Example Taskfile