mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01: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
@ -141,7 +141,7 @@ func (cfg Catalog) ToCatalogerConfig() cataloger.Config {
|
|||||||
},
|
},
|
||||||
Java: javaCataloger.DefaultCatalogerOpts().
|
Java: javaCataloger.DefaultCatalogerOpts().
|
||||||
WithUseNetwork(cfg.Java.UseNetwork).
|
WithUseNetwork(cfg.Java.UseNetwork).
|
||||||
WithMavenCentralURL(cfg.Java.MavenURL).
|
WithMavenURL(cfg.Java.MavenURL).
|
||||||
WithMaxParentRecursiveDepth(cfg.Java.MaxParentRecursiveDepth),
|
WithMaxParentRecursiveDepth(cfg.Java.MaxParentRecursiveDepth),
|
||||||
Python: pythonCataloger.CatalogerConfig{
|
Python: pythonCataloger.CatalogerConfig{
|
||||||
GuessUnpinnedRequirements: cfg.Python.GuessUnpinnedRequirements,
|
GuessUnpinnedRequirements: cfg.Python.GuessUnpinnedRequirements,
|
||||||
|
|||||||
@ -38,6 +38,7 @@ func (c Config) JavaConfig() java.Config {
|
|||||||
SearchUnindexedArchives: c.Search.IncludeUnindexedArchives,
|
SearchUnindexedArchives: c.Search.IncludeUnindexedArchives,
|
||||||
SearchIndexedArchives: c.Search.IncludeIndexedArchives,
|
SearchIndexedArchives: c.Search.IncludeIndexedArchives,
|
||||||
UseNetwork: c.Java.UseNetwork,
|
UseNetwork: c.Java.UseNetwork,
|
||||||
|
MavenBaseURL: c.Java.MavenURL,
|
||||||
MaxParentRecursiveDepth: c.Java.MaxParentRecursiveDepth,
|
MaxParentRecursiveDepth: c.Java.MaxParentRecursiveDepth,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,7 +13,7 @@ func (j CatalogerOpts) WithUseNetwork(input bool) CatalogerOpts {
|
|||||||
return j
|
return j
|
||||||
}
|
}
|
||||||
|
|
||||||
func (j CatalogerOpts) WithMavenCentralURL(input string) CatalogerOpts {
|
func (j CatalogerOpts) WithMavenURL(input string) CatalogerOpts {
|
||||||
if input != "" {
|
if input != "" {
|
||||||
j.MavenURL = input
|
j.MavenURL = input
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user