Sort spec types by dependencies

This commit is contained in:
Matthias Loibl 2019-07-22 18:12:40 +02:00
parent 9110b1417d
commit 95226f7f9b
No known key found for this signature in database
GPG key ID: 78A796CA74CA38BA

View file

@ -18,6 +18,13 @@ type JsonnetFile struct {
Dependencies []Dependency `json:"dependencies"` Dependencies []Dependency `json:"dependencies"`
} }
type Dependency struct {
Name string `json:"name"`
Source Source `json:"source"`
Version string `json:"version"`
DepSource string `json:"-"`
}
type Source struct { type Source struct {
GitSource *GitSource `json:"git"` GitSource *GitSource `json:"git"`
} }
@ -26,10 +33,3 @@ type GitSource struct {
Remote string `json:"remote"` Remote string `json:"remote"`
Subdir string `json:"subdir"` Subdir string `json:"subdir"`
} }
type Dependency struct {
Name string `json:"name"`
Source Source `json:"source"`
Version string `json:"version"`
DepSource string `json:"-"`
}