mirror of
https://github.com/anchore/syft
synced 2024-11-10 06:14:16 +00:00
Wire though maven-url to java config (#2291)
Signed-off-by: Colm O hEigeartaigh <coheigea@apache.org>
This commit is contained in:
parent
1470abaded
commit
9fa11f2339
3 changed files with 3 additions and 2 deletions
|
@ -141,7 +141,7 @@ func (cfg Catalog) ToCatalogerConfig() cataloger.Config {
|
|||
},
|
||||
Java: javaCataloger.DefaultCatalogerOpts().
|
||||
WithUseNetwork(cfg.Java.UseNetwork).
|
||||
WithMavenCentralURL(cfg.Java.MavenURL).
|
||||
WithMavenURL(cfg.Java.MavenURL).
|
||||
WithMaxParentRecursiveDepth(cfg.Java.MaxParentRecursiveDepth),
|
||||
Python: pythonCataloger.CatalogerConfig{
|
||||
GuessUnpinnedRequirements: cfg.Python.GuessUnpinnedRequirements,
|
||||
|
|
|
@ -38,6 +38,7 @@ func (c Config) JavaConfig() java.Config {
|
|||
SearchUnindexedArchives: c.Search.IncludeUnindexedArchives,
|
||||
SearchIndexedArchives: c.Search.IncludeIndexedArchives,
|
||||
UseNetwork: c.Java.UseNetwork,
|
||||
MavenBaseURL: c.Java.MavenURL,
|
||||
MaxParentRecursiveDepth: c.Java.MaxParentRecursiveDepth,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ func (j CatalogerOpts) WithUseNetwork(input bool) CatalogerOpts {
|
|||
return j
|
||||
}
|
||||
|
||||
func (j CatalogerOpts) WithMavenCentralURL(input string) CatalogerOpts {
|
||||
func (j CatalogerOpts) WithMavenURL(input string) CatalogerOpts {
|
||||
if input != "" {
|
||||
j.MavenURL = input
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue