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

extension update-index: remove constraint string on path or not?

Open haroldrandom opened this issue 5 years ago • 0 comments

Description

As mentioned in https://github.com/Azure/azure-cli-dev-tools/pull/163#discussion_r391384461, azdev extension update-index requries the path name of src/index.json must contain string "azure-cli-extensions" which is the official default name of Azure/azure-cli-extensions.

But in the setup step, their is not such limit.

This limitation break in ADO, cause the default value of ADO predefined variable $(System.DefaultWorkingDirectory) isn't settable in pipeline level. So azdev extension update-index won't work by default in ADO if checking out Azure/azure-cli-extensions.

Work Around

As a work around, have to set $(System.DefaultWorkingDirectory) in each task of a pipeline to re-define the working directory.

Expected?

Not sure what's the perfect behavior.

haroldrandom avatar Mar 12 '20 07:03 haroldrandom