-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert client signature endpoint
to base_url
to avoid breaking for Mgmt SDK
#2758
Conversation
@@ -231,7 +231,7 @@ async function _regenerateSingle(spec: string, flags: RegenerateFlags): Promise< | |||
// Perform some asynchronous operation here | |||
const options = addOptions(spec, PLUGIN_DIR, flags); | |||
const commandPromises = options.map((option) => { | |||
const command = `tsp compile ${spec} --emit=${PLUGIN_DIR} ${option}`; | |||
const command = `tsp compile ${spec} --emit=${toPosix(PLUGIN_DIR)} ${option}`; |
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.
emitter-options shall be posix path style otherwise cause warning: microsoft/typespec#4023
@@ -46,13 +46,12 @@ def __init__( | |||
self, | |||
credential: "TokenCredential", | |||
subscription_id: str, | |||
*, | |||
endpoint: str = "https://management.azure.com", | |||
base_url: str = "https://management.azure.com", |
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.
Revert client signature endpoint to base_url to avoid breaking for Mgmt SDK (example of real case: https://github.com/Azure/azure-sdk-for-python/blob/131e9ab94a8dec847426337001605001d7e1f0cb/sdk/apicenter/azure-mgmt-apicenter/azure/mgmt/apicenter/_api_center_mgmt_client.py#L69-L74)
await client.top_level_tracked_resources.get(RESOURCE_GROUP_NAME, "top") | ||
# make sure signautre name is correct | ||
await client.top_level_tracked_resources.get( | ||
resource_group_name=RESOURCE_GROUP_NAME, top_level_tracked_resource_name="top" |
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.
Add test case to avoid client signature breaking in the future.
Revert client signature
endpoint
tobase_url
to avoid breaking for Mgmt SDK