[BUG] remove dependencies.yaml should not throw error if the file is not exist #436
Open
1 task done
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-priority
Indicates an issue or PR lacks a `priority/foo` label and requires one.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Is there an existing issue for this?
Konveyor version
v0.6.0
Priority
Major
Current Behavior
https://github.com/konveyor/kantra/blob/main/cmd/analyze.go#L1326-L1333
when use --bulk to analyze an app, the dependencies.yaml may not exist. in
CopyFileContents
function ,if the source file is not open successfully, it won't return error. so the code is try to remove thedependencies.yaml
, it will failed due toin such case, it should not remove the file, i see in some places, it will ignore the dependencies.yaml not exist problem and it won't process the
moveResults
, like https://github.com/konveyor/kantra/blob/main/cmd/analyze-bin.go#L677-L690So how about ignore the dependencies.yaml not exist problems when moveResults, like
Expected Behavior
No response
How Reproducible
Always (Default)
Steps To Reproduce
No response
Environment
- OS:
Anything else?
No response
The text was updated successfully, but these errors were encountered: