mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-11 23:50:05 +01:00
feat: add gitlab source for gitlab package registry
cleanup http source
This commit is contained in:
parent
8ffad5a3ea
commit
d655269156
7 changed files with 180 additions and 70 deletions
|
|
@ -302,10 +302,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)
|
||||
case d.Source.GitlabRegistrySource != nil:
|
||||
p = NewGitlabRegistryPackage(d.Source.GitlabRegistrySource)
|
||||
}
|
||||
|
||||
if p == nil {
|
||||
return nil, errors.New("either git, local or http source is required")
|
||||
return nil, errors.New("either git, local, http or gitlab 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