Skip to content

Commit

Permalink
fix incorrect parse of pyversion in poetry scan (#3710)
Browse files Browse the repository at this point in the history
  • Loading branch information
fliepeltje committed Jul 6, 2024
1 parent b467d57 commit 826a889
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scanner/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ func configPoetry(sourceDir string, _ *ScannerConfig) (*SourceInfo, error) {
depList = append(depList, parsePyDep(dep))
}
pyVersion := deps["python"].(string)
pyVersion = strings.TrimPrefix(pyVersion, "^")
pyVersion = parsePyDep(pyVersion)
cfg := PyCfg{pyVersion, appName, depList}
return intoSource(cfg)
Expand Down

0 comments on commit 826a889

Please sign in to comment.