fix: unmarshal legacyImports

This commit is contained in:
sh0rez 2020-02-28 23:22:41 +01:00
parent e28e7ff55b
commit fcac885ce2
No known key found for this signature in database
GPG key ID: 87C71DF9F8181FF1
3 changed files with 5 additions and 4 deletions

View file

@ -73,6 +73,7 @@ func (jf JsonnetFile) MarshalJSON() ([]byte, error) {
var s jsonFile
s.Version = Version
s.LegacyImports = jf.LegacyImports
for _, d := range jf.Dependencies {
s.Dependencies = append(s.Dependencies, d)