azure-pipelines-tasks-terraform icon indicating copy to clipboard operation
azure-pipelines-tasks-terraform copied to clipboard

documentation misleading for development on mac vs code

Open jason-johnson opened this issue 2 years ago • 1 comments

Description

After following all the steps in the readme, the npm start command fails on terraform installer task.

To Reproduce Steps to reproduce the behavior:

  1. Clone repository locally
  2. Ensure docker is running
  3. Start VS code
  4. Click the button in VS code to restart inside a container
  5. install tfx-cli
  6. switch to directory terraform installer
  7. run npm install
  8. run npm run build
  9. run npm start

Expected behavior* The npm start task should properly install terraform where the other task can find it

Screenshots

image

jason-johnson avatar Jul 05 '22 16:07 jason-johnson

Oh, never mind. The issue is that the documentation and sample env file seem to indicate you can use relative paths. In fact you cannot because commands are ran from various CWD where the relative paths will not work. If you change e.g. AGENT_TOOLSDIRECTORY to be full path then everything works. So only the documentation is misleading.

jason-johnson avatar Jul 05 '22 16:07 jason-johnson