generated from konveyor-ecosystem/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.needs-priorityIndicates an issue or PR lacks a `priority/foo` label and requires one.Indicates an issue or PR lacks a `priority/foo` label and requires one.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.Indicates an issue or PR lacks a `triage/foo` label and requires one.
Description
Is there an existing issue for this?
- I have searched the existing issues
Konveyor version
v0.7.0-alpha.2
Priority
Critical
Current Behavior
The error include by this pr: #438
the rule may not exist:
when kantra run with a not-existing rule, it will throw an error:
~/.kantra ./kantra analyze --input /home/fenzho/code/github/spring-petclinic --output /home/fenzho/code/github/spring-petclinic/appcat --rules test111.yaml,testrule.yaml --overwrite --target cloud-readiness
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x17f2970]
goroutine 1 [running]:
github.com/konveyor-ecosystem/kantra/cmd.(*analyzeCommand).walkRuleFilesForLabelsContainerless.walkRuleSets.func2({0x7ffe3092cd15, 0x1a}, {0x0?, 0x0?}, {0x1f057c0, 0xc0003a3110})
/workspace/cmd/util.go:107 +0x30
path/filepath.WalkDir({0x7ffe3092cd15, 0x1a}, 0xc000687998)
/usr/local/go/src/path/filepath/path.go:531 +0x9c
github.com/konveyor-ecosystem/kantra/cmd.(*analyzeCommand).walkRuleFilesForLabelsContainerless(0xc0004d6400, {0x1c0ff06, 0x12})
/workspace/cmd/analyze-bin.go:312 +0x29f
github.com/konveyor-ecosystem/kantra/cmd.(*analyzeCommand).fetchLabelsContainerless(0xc0004d6400, {0x0?, 0x0?}, 0x0?, 0x0?, {0x1f05460, 0xc0000d2540})
/workspace/cmd/analyze-bin.go:287 +0x4d
github.com/konveyor-ecosystem/kantra/cmd.(*analyzeCommand).Validate(0xc0004d6400, {0x1f21c88, 0xc000306640})
/workspace/cmd/analyze.go:418 +0x27f
github.com/konveyor-ecosystem/kantra/cmd.NewAnalyzeCmd.func1(0xc00029f808, {0xc00017c7e0?, 0x4?, 0x1bf3c10?})
/workspace/cmd/analyze.go:178 +0x291
github.com/spf13/cobra.(*Command).execute(0xc00029f808, {0xc00017c6c0, 0x9, 0x9})
/go/pkg/mod/github.com/spf13/[email protected]/command.go:970 +0xa44
github.com/spf13/cobra.(*Command).ExecuteC(0x2da6b40)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041
github.com/spf13/cobra.(*Command).ExecuteContext(...)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:1034
github.com/konveyor-ecosystem/kantra/cmd.Execute()
/workspace/cmd/root.go:76 +0x10c
main.main()
/workspace/main.go:8 +0xf
Expected Behavior
No response
How Reproducible
Always (Default)
Steps To Reproduce
No response
Environment
- OS:
Anything else?
No response
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.needs-priorityIndicates an issue or PR lacks a `priority/foo` label and requires one.Indicates an issue or PR lacks a `priority/foo` label and requires one.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.Indicates an issue or PR lacks a `triage/foo` label and requires one.