Skip to content

Seeding fails when ruleset.yaml does not exist. #70

@jortel

Description

@jortel

Seeding fails when ruleset.yaml does not exist. I think it's only used for RuleSet.Name and RuleSet.Description which can be derived from the parent directory.

time=2025-04-29T15:01:23Z level=info msg=[seeding] Applying seeds.
time=2025-04-29T15:01:24Z level=error msg=[hub] open /tmp/seed/rulesets/spring-boot/ruleset.yaml: no such file or directory
github.com/konveyor/tackle2-seed/pkg.(*RuleSet).readRuleSet()
	/opt/app-root/pkg/mod/github.com/konveyor/[email protected]/pkg/ruleset.go:90
github.com/konveyor/tackle2-seed/pkg.(*RuleSet).Load()
	/opt/app-root/pkg/mod/github.com/konveyor/[email protected]/pkg/ruleset.go:67
github.com/konveyor/tackle2-seed/pkg.(*Seed).DecodeItems()
	/opt/app-root/pkg/mod/github.com/konveyor/[email protected]/pkg/seed.go:78
github.com/konveyor/tackle2-hub/seed.(*RuleSet).With()
	/opt/app-root/src/seed/ruleset.go:24
github.com/konveyor/tackle2-hub/seed.(*Hub).With()
	/opt/app-root/src/seed/seed.go:31
github.com/konveyor/tackle2-hub/seed.Seed()
	/opt/app-root/src/seed/pkg.go:75
main.Setup()
	/opt/app-root/src/cmd/main.go:49
main.main()
	/opt/app-root/src/cmd/main.go:107
runtime.main()
	/usr/lib/golang/src/runtime/proc.go:271
runtime.goexit()
	/usr/lib/golang/src/runtime/asm_amd64.s:1695
panic: open /tmp/seed/rulesets/spring-boot/ruleset.yaml: no such file or directory

Metadata

Metadata

Assignees

Labels

needs-kindIndicates an issue or PR lacks a `kind/foo` label and requires one.needs-priorityIndicates 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.

Type

No type

Projects

Status

🔖 Ready

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions