Skip to content

Commit 5803d5b

Browse files
committed
fix: moving stuff around
1 parent 36b2779 commit 5803d5b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/pipenv.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ async function pipfileToRequirements() {
8080
// Generate requirements from existing lock file.
8181
// See: https://pipenv.pypa.io/en/latest/advanced/#generating-a-requirements-txt
8282
try {
83-
await spawn('pipenv', ['requirements'], {
83+
res = await spawn('pipenv', ['requirements'], {
8484
cwd: this.servicePath,
8585
});
8686
} catch (e) {
@@ -96,14 +96,13 @@ async function pipfileToRequirements() {
9696
await spawn('pipenv', ['lock'], {
9797
cwd: this.servicePath,
9898
});
99+
res = await spawn('pipenv', ['requirements'], {
100+
cwd: this.servicePath,
101+
});
99102
} else {
100103
throw e;
101104
}
102105
}
103-
104-
res = await spawn('pipenv', ['requirements'], {
105-
cwd: this.servicePath,
106-
});
107106
} else {
108107
// Falling back to legacy pipenv syntax
109108
res = await spawn(

0 commit comments

Comments
 (0)