mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-12 08:00:05 +01:00
fix(spec/v1): properly handle empty subdirs
This commit is contained in:
parent
fcac885ce2
commit
e00d1268e4
1 changed files with 4 additions and 2 deletions
|
|
@ -18,8 +18,10 @@ func FromV0(mv0 v0.JsonnetFile) (JsonnetFile, error) {
|
|||
case old.Source.GitSource != nil:
|
||||
d = *deps.Parse("", old.Source.GitSource.Remote)
|
||||
|
||||
if old.Source.GitSource.Subdir != "" {
|
||||
subdir := filepath.Clean("/" + old.Source.GitSource.Subdir)
|
||||
d.Source.GitSource.Subdir = subdir
|
||||
}
|
||||
|
||||
case old.Source.LocalSource != nil:
|
||||
d = *deps.Parse("", old.Source.LocalSource.Directory)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue