mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-12 16:10:04 +01:00
Create LocalSource as type for local dependencies
This commit is contained in:
parent
6ee790d911
commit
07801936c0
6 changed files with 71 additions and 23 deletions
|
|
@ -54,6 +54,9 @@ func Install(ctx context.Context, isLock bool, dependencySourceIdentifier string
|
|||
p = NewGitPackage(dep.Source.GitSource)
|
||||
subdir = dep.Source.GitSource.Subdir
|
||||
}
|
||||
if dep.Source.LocalSource != nil {
|
||||
p = NewLocalPackage(dep.Source.LocalSource)
|
||||
}
|
||||
|
||||
lockVersion, err := p.Install(ctx, tmpDir, dep.Version)
|
||||
if err != nil {
|
||||
|
|
@ -100,7 +103,7 @@ func Install(ctx context.Context, isLock bool, dependencySourceIdentifier string
|
|||
return nil, err
|
||||
}
|
||||
depsDeps, err := LoadJsonnetfile(filepath)
|
||||
// It is ok for depedencies not to have a JsonnetFile, it just means
|
||||
// It is ok for dependencies not to have a JsonnetFile, it just means
|
||||
// they do not have transitive dependencies of their own.
|
||||
if err != nil && !os.IsNotExist(err) {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue