Skip to content

Commit b92b090

Browse files
committed
pip as default when no tech
1 parent de3061a commit b92b090

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

commands/audit/sca/python/python.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ func getDependencies(params xrayutils2.AuditParams) (dependenciesGraph map[strin
9999
if err != nil {
100100
return
101101
}
102-
if len(params.Technologies()) == 0 {
103-
err = errors.New("no technology was provided")
104-
return
105-
}
106102
pythonTool := pythonutils.Pip
107103
if len(params.Technologies()) > 0 {
108104
pythonTool = pythonutils.PythonTool(params.Technologies()[0])
@@ -210,6 +206,9 @@ func installPoetryDeps(params xrayutils2.AuditParams) (restoreEnv func() error,
210206
if params.DepsRepo() != "" {
211207
var serverDetails *config.ServerDetails
212208
serverDetails, err = params.ServerDetails()
209+
if err != nil {
210+
return restoreEnv, err
211+
}
213212
rtUrl, username, password, err := utils.GetPypiRepoUrlWithCredentials(serverDetails, params.DepsRepo(), false)
214213
if err != nil {
215214
return restoreEnv, err

0 commit comments

Comments
 (0)