mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-11 23:50:05 +01:00
feat: add http source with support for environment variables
This commit is contained in:
parent
3dfb3453fa
commit
428608f190
4 changed files with 203 additions and 87 deletions
|
|
@ -300,10 +300,12 @@ func download(d deps.Dependency, vendorDir, pathToParentModule string) (*deps.De
|
|||
}
|
||||
|
||||
p = NewLocalPackage(&deps.Local{Directory: modulePath})
|
||||
case d.Source.HttpSource != nil:
|
||||
p = NewHttpPackage(d.Source.HttpSource)
|
||||
}
|
||||
|
||||
if p == nil {
|
||||
return nil, errors.New("either git or local source is required")
|
||||
return nil, errors.New("either git, local or http source is required")
|
||||
}
|
||||
|
||||
version, err := p.Install(context.TODO(), d.Name(), vendorDir, d.Version)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue