Skip to content

Commit

Permalink
Merge pull request #124 from zmb3/zb-go-plus-5-7
Browse files Browse the repository at this point in the history
Fix for compatibility with go-plus 5.7+
  • Loading branch information
lloiser authored Dec 17, 2017
2 parents 0e2f466 + 4ba0fd5 commit 74d2f52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/delve-get.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export default function getDelve (goget, goconfig) {
}

function getVersion (dlvPath) {
return goconfig.executor.exec(dlvPath, ['version'], 'project').then((r) => {
const options = goconfig.executor.getOptions('project')
return goconfig.executor.exec(dlvPath, ['version'], options).then((r) => {
if (r.exitcode !== 0) {
const message = `Failed to get version of dlv:\n ` +
`Exit code: ${r.exitcode}\n ` +
Expand Down

0 comments on commit 74d2f52

Please sign in to comment.