mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-12 08:00:05 +01:00
Sort spec types by dependencies
This commit is contained in:
parent
9110b1417d
commit
95226f7f9b
1 changed files with 7 additions and 7 deletions
14
spec/spec.go
14
spec/spec.go
|
|
@ -18,6 +18,13 @@ type JsonnetFile struct {
|
|||
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 {
|
||||
GitSource *GitSource `json:"git"`
|
||||
}
|
||||
|
|
@ -26,10 +33,3 @@ type GitSource struct {
|
|||
Remote string `json:"remote"`
|
||||
Subdir string `json:"subdir"`
|
||||
}
|
||||
|
||||
type Dependency struct {
|
||||
Name string `json:"name"`
|
||||
Source Source `json:"source"`
|
||||
Version string `json:"version"`
|
||||
DepSource string `json:"-"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue