Skip to content

Commit 8bc880e

Browse files
authored
fix: support Pipenv develop packages without a version (#186)
1 parent 6d19b4d commit 8bc880e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

pkg/lockfile/fixtures/pipenv/no-version.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,11 @@
2222
"ref": "b36054111bc1e8bbadb5d0d60158feb72926f467"
2323
}
2424
},
25-
"develop": {}
25+
"develop": {
26+
"itsdangerous": {
27+
"editable": true,
28+
"git": "https://github.com/pallets/itsdangerous",
29+
"ref": "de09cad488a4d7c7bbcbcdb8e1c2dfde64325f48"
30+
}
31+
}
2632
}

pkg/lockfile/parse-pipenv-lock.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ func ParsePipenvLock(pathToLockfile string) ([]PackageDetails, error) {
5050
}
5151

5252
for name, pipenvPackage := range parsedLockfile.PackagesDev {
53+
if pipenvPackage.Version == "" {
54+
continue
55+
}
56+
5357
version := pipenvPackage.Version[2:]
5458

5559
packages[name+"@"+version] = PackageDetails{

0 commit comments

Comments
 (0)