Skip to content

generate.py now requires an extra variable that should not be required #6515

@vilit1

Description

@vilit1

Describe the bug

https://github.com/Azure/azure-cli-extensions/pull/6507/files

This pr added a variable, dependent file, which was not present before. Since this is a required variable, it is failing to run the script and breaking our builds.

I can see why this would be needed for some wheels and extensions but it is not needed for others. I can get around this by adding -d None to the command but this should not be necessary.

Related command

scripts\refdoc\generate.py -e path_to_wheel

Errors

generate.py: error: the following arguments are required: -d/--dependent-file

Issue script & Debug output

generate.py: error: the following arguments are required: -d/--dependent-file

Expected behavior

-d/--dependent-file should not be required.

Environment Summary

azure-cli 2.50.0

core 2.50.0
telemetry 1.0.8

Extensions:
azure-iot 0.21.4

Dependencies:
msal 1.22.0
azure-mgmt-resource 23.1.0b2

Python location 'C:\repo\venv38\Scripts\python.exe'
Extensions directory 'C:\repo\extensions'

Python (Windows) 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

No response

Metadata

Metadata

Assignees

Labels

Azure CLI TeamThe command of the issue is owned by Azure CLI teambugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions