Azure / Azure/azure-cli-dev-tools

setup uses directory name instead of extension name

Offen
#113 1 Kommentar 0 Reaktionen 1 zugewiesene Person Beansprucht von @haroldrandom Auf GitHub ansehen
infrastructure
Vorherrschende Sprache
Python
Sterne
91
Forks
134
Ø Merge
2 Std. 51 Min.
Gemergte PRs (30 T.)
1

Beschreibung

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'
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.