Skip to content

Commit

Permalink
fix: accept package manager from test result if returned
Browse files Browse the repository at this point in the history
When testing a GitHub url without an explicit target file
the CLI won't know which package manager was used to perform
the test, so accept the package manager from the test response
if returned.
  • Loading branch information
darscan authored and Anton Drukh committed Jul 27, 2017
1 parent 16c902b commit ac48703
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/snyk-test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ function executeTest(root, options) {
options.packageManager = packageManager;
return run(root, options)
.then(function (res) {
res.packageManager = packageManager;
if (!res.packageManager) {
res.packageManager = packageManager;
}
return res;
});
} catch (error) {
Expand Down

0 comments on commit ac48703

Please sign in to comment.