Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(GoMod): Ignore the version constraint for
go
earlier
As of Go version 1.21.0 the module graph contains a version constraint for the `go` version. As this does not represent a dependency it can be filtered out. In fact the entry would be filtered out by the below `graph.subgraph(vendorModules)`. However, the code crashes before reaching that line. In particular, `parseModuleEntry(columns[1])` fails because there is no `ModuleInfo` for "go". Avoid that issue by ignoring the corresponding edge when parsing the module graph. This is a preparation for upgrading to the latest Go version. Signed-off-by: Frank Viernau <[email protected]>
- Loading branch information