Azure / bicep

Bicep is a declarative language for describing and deploying Azure resources
MIT License
3.25k stars 753 forks source link

Try to identify when two versions of bicep are installed on the system #5070

Open alex-frankel opened 3 years ago

alex-frankel commented 3 years ago

Based off of discussion for resolving https://github.com/Azure/bicep/issues/5057#issuecomment-957899059

It would be great if we can try to look for a second install of bicep as that more than likely will only cause problems if you call the wrong/older version by accident

majastrz commented 3 years ago

Btw, it's perfectly ok to for us only check in common install locations and miss some custom locations.

miqm commented 2 years ago

👍🏻 to this, perhaps CLI could check if the bicep is installed on the path and determine the version using? if it's there - use it.

For checking if user has the latest version - if the check fails, cli could suggest upgrading by pointing user to aka.ms link with install instructions.

If there is no bicep on the path - just install in the .azure/bin folder.