azure-pipelines-task-lib/task
's execAsync
fails on this.tool(...)
#974
Labels
azure-pipelines-task-lib/task
's execAsync
fails on this.tool(...)
#974
Please check our current Issues to see if someone already reported this https://github.com/Microsoft/azure-pipelines-task-lib/issues
Environment
azure-pipelines-task-lib version: 4.6.0
Using esbuild to bundle and compile into cjs
Issue Description
When using the convenience wrapper around the tool runner from the
azure-pipelines-task-lib/task
the execAsync method failsCannot read properties of undefined (reading 'tool')
, the error is coming from hereazure-pipelines-task-lib/node/task.ts
Line 1451 in cea7412
I am not sure how this was meant to have worked as
this
has nothing in the lexical scope of that standalone exported function, maybe I am being a bit thick here and am missing something "¯_(ツ)_/¯" .Expected behaviour
When I run the below, I would expect it to work.
Actual behaviour
Return
TypeError: Cannot read properties of undefined (reading 'tool')
Steps to reproduce
Happy to submit a PR to fix that behaviour - IF I got the right end of the stick here
Logs
The text was updated successfully, but these errors were encountered: