azure-cli-dev-tools icon indicating copy to clipboard operation
azure-cli-dev-tools copied to clipboard

setup uses directory name instead of extension name

Open ctaggart opened this issue 6 years ago • 1 comments

I'm adding Azure Pipelines support in https://github.com/virtustream/azure-vmware-virtustream-cli-extension/pull/1 and I cam across what may have been a cause for https://github.com/Azure/azure-cli-dev-tools/issues/92. The name in azdev setup -r $PWD -e name ends up working if it is the directory name, not the extension name. 🐛

I was able to work around it in Azure Pipeline with this:

- script: |
    pipenv run azdev setup -r $PWD
  displayName: 'Install azdev'

- script: |
    pipenv run azdev extension list
    # pipenv run azdev extension add azure-vmware-virtustream-cli-extension
    # I do not understand why azdev is using the directory name.
    nm=${PWD##*/}
    pipenv run azdev extension add $nm
  displayName: 'Add extension'

ctaggart avatar Jul 16 '19 18:07 ctaggart

Because currently, some commands require run in virtual env only.

haroldrandom avatar Mar 26 '20 06:03 haroldrandom