fix buildrequires and requires type

This commit is contained in:
Mustafa Gezen 2021-01-01 16:22:30 +01:00
parent fa52ff07e3
commit 059cb525a7
1 changed files with 2 additions and 14 deletions

View File

@ -41,20 +41,8 @@ type ModuleMd struct {
} `yaml:"license,omitempty"`
Xmd map[string]interface{} `yaml:"xmd,omitempty"`
Dependencies []struct {
Buildrequires struct {
Platform []string `yaml:"platform,omitempty"`
Buildtools []string `yaml:"buildtools,omitempty"`
Compatible []string `yaml:"compatible,omitempty"`
Extras []interface{} `yaml:"extras,omitempty"`
Moreextras []string `yaml:"moreextras,omitempty"`
} `yaml:"buildrequires,omitempty,omitempty"`
Requires struct {
Platform []string `yaml:"platform,omitempty"`
Compatible []string `yaml:"compatible,omitempty"`
Runtime []string `yaml:"runtime,omitempty"`
Extras []interface{} `yaml:"extras,omitempty"`
Moreextras []string `yaml:"moreextras,omitempty"`
} `yaml:"requires,omitempty,omitempty"`
Buildrequires map[string]interface{} `yaml:"buildrequires,omitempty,omitempty"`
Requires map[string]interface{} `yaml:"requires,omitempty,omitempty"`
} `yaml:"dependencies,omitempty"`
References struct {
Community string `yaml:"community,omitempty"`