Dependencycheck: Go Analyzer stucks since v6.0.2

Created on 3 Nov 2020  路  7Comments  路  Source: jeremylong/DependencyCheck

Describe the bug

The scanner gets stuck when analyzing Go modules with large number of indirect dependencies.

Version of dependency-check used
The problem occurs using version 6.0.2 of the cli, either on windows and on linux. It does not happen when using 6.0.1.

Log file

https://gist.github.com/qmuntal/3f7ff07957d8b3f020b46d7c0842624f

To Reproduce

// go.mod

module test

go 1.12

require (
    github.com/goreleaser/goreleaser v0.146.0
    golang.org/x/tools v0.0.0-20200818005847-188abfa75333 // indirect
)

// main.go

package main

import (
    "fmt"
    _ "github.com/goreleaser/goreleaser"
)

func main() {
    fmt.Println("Failed")
}

Running dependency-check.bat" --scan . --enableExperimental on the previous program makes dependency-check to stuck for 30min, and then it just fails.

Expected behavior
The Scan finishes in a reasonable amount of time (10sec)

bug duplicate

Most helpful comment

It can also be reproduced with v6.0.3

All 7 comments

It can also be reproduced with v6.0.3

Be reproduced with v6.0.3 too.

[INFO] Launching: [/path/xxx/path/bin/go, list, -json, -m, all] from /path/xxx/path
[ERROR] Analysis task was cancelled.
[WARN] An error occurred while analyzing '/path/xxx/path/go.mod' (Golang Mod Analyzer).
[ERROR] One or more fatal errors occurred
[ERROR] go process interrupted

Same issue reported under #2894.

I believe this is fixed in the latest. Can anyone confirm?

sure going to check this now

I cannot longer reproduce this issue using v6.1.5. Thanks for fixing it!

I also checked and it works thank you!!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

javixeneize picture javixeneize  路  14Comments

albuch picture albuch  路  16Comments

gregory-lyons picture gregory-lyons  路  21Comments

Vampire picture Vampire  路  15Comments

alexanderkjall picture alexanderkjall  路  21Comments