Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this does handles some scenarios (please provide some real use cases in the PR description), this still can't handle the keyvault track 1 and 2 SDKs' compatibility:
Track 1 SDK:
azure.keyvault
Track 2 SDK:
azure.keyvault.secrets
azure.keyvault.keys
azure.keyvault.secrets.SecretClient.xxx
andazure.keyvault.keys.KeyClient.xxx
will be matched as Track 1 SDKazure.keyvault.
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the change itself looks resolving the issue mentioned in description, same question on is there multiple namespaces containing dot after first dot? such as
azure.multipleapi.storage.blob
,azure.multipleapi.storage.file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jiasli If
azure.keyvault
is totally replaced with submodules such asazure.keyvault.secrets
andazure.keyvault.keys
, there will be no problem.But if the resource type for
azure.keyvault
still exists with new resource types withazure.keyvault.secrets
andazure.keyvault.keys
, it will have some problem.@yungezz There are packages as you mentioned, e.g.
azure.mgmt.resource
in https://github.com/Azure/azure-cli/blob/dev/src/azure-cli-core/azure/cli/core/profiles/_shared.py#L44-L49 .There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
azure-cli/src/azure-cli-core/azure/cli/core/profiles/_shared.py
Lines 44 to 49 in 31a9724
This doesn't have problem because there is no
azure.mgmt.resource
that can cause the same conflict asazure.keyvault
.I am ok with this for now, but still we need to figure out a better solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. If you want to using submodules for
keyvault
, you cannot useazure.keyvault
any more.