Skip to content

feat: Introduce featuresAvailable into gen.lock #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions lockfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,20 @@ import (
)

type LockFile struct {
LockVersion string `yaml:"lockVersion"`
ID string `yaml:"id"`
Management Management `yaml:"management"`
Features map[string]map[string]string `yaml:"features,omitempty"`
GeneratedFiles []string `yaml:"generatedFiles,omitempty"`
Examples Examples `yaml:"examples,omitempty"`
AdditionalProperties map[string]any `yaml:",inline"` // Captures any additional properties that are not explicitly defined for backwards/forwards compatibility
LockVersion string `yaml:"lockVersion"`
ID string `yaml:"id"`
Management Management `yaml:"management"`
GeneratedFiles []string `yaml:"generatedFiles,omitempty"`
Examples Examples `yaml:"examples,omitempty"`

// Mapping of targets to used feature names and versions
Features map[string]map[string]string `yaml:"features,omitempty"`

// Mapping of targets to available feature names and versions
FeaturesAvailable map[string]map[string]string `yaml:"featuresAvailable,omitempty"`

// Captures any additional properties that are not explicitly defined for backwards/forwards compatibility
AdditionalProperties map[string]any `yaml:",inline"`
}

type Management struct {
Expand Down
Loading