jason-johnson / azure-pipelines-tasks-terraform

Azure Pipelines extension for Terraform
MIT License
124 stars 52 forks source link

documentation misleading for development on mac vs code #277

Open jason-johnson opened 2 years ago

jason-johnson commented 2 years ago

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 commented 2 years ago

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.