Azure / Azure/azure-cli-dev-tools

setup uses directory name instead of extension name

Open
#113 1 comment 0 reactions 1 assignee Claimed by @haroldrandom View on GitHub
infrastructure
Dominant language
Python
Stars
91
Forks
134
Avg merge
2h 51m
Merged PRs (30d)
1

Description

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](https://github.com/virtustream/azure-vmware-virtustream-cli-extension/blob/ad3725e98fc272323c0f960a81f681599364aa3b/azure-pipelines.yml#L28-L38):
``` yaml
- 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'
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.