mirror of
https://github.com/mudler/luet.git
synced 2025-09-20 18:51:23 +00:00
package: Fix typo on labels key
This commit is contained in:
@@ -163,7 +163,7 @@ type DefaultPackage struct {
|
|||||||
Uri []string `json:"uri,omitempty"`
|
Uri []string `json:"uri,omitempty"`
|
||||||
License string `json:"license,omitempty"`
|
License string `json:"license,omitempty"`
|
||||||
|
|
||||||
Labels map[string]string `json:labels,omitempty`
|
Labels map[string]string `json:"labels,omitempty"` // Affects YAML field names too.
|
||||||
}
|
}
|
||||||
|
|
||||||
// State represent the package state
|
// State represent the package state
|
||||||
@@ -287,7 +287,6 @@ func (p *DefaultPackage) Encode(db PackageDatabase) (string, error) {
|
|||||||
func (p *DefaultPackage) Yaml() ([]byte, error) {
|
func (p *DefaultPackage) Yaml() ([]byte, error) {
|
||||||
j, err := p.JSON()
|
j, err := p.JSON()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
||||||
return []byte{}, err
|
return []byte{}, err
|
||||||
}
|
}
|
||||||
y, err := yaml.JSONToYAML(j)
|
y, err := yaml.JSONToYAML(j)
|
||||||
|
Reference in New Issue
Block a user