Skip to content
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

Merged
merged 4 commits into from
Aug 9, 2024

Conversation

msyyc
Copy link
Member

@msyyc msyyc commented Aug 9, 2024

Revert client signature endpoint to base_url to avoid breaking for Mgmt SDK

@@ -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}`;
Copy link
Member Author

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",
Copy link
Member Author

@msyyc msyyc Aug 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"
Copy link
Member Author

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.

@msyyc msyyc marked this pull request as ready for review August 9, 2024 03:23
@iscai-msft iscai-msft merged commit 8871e46 into main Aug 9, 2024
15 checks passed
@iscai-msft iscai-msft deleted the fix-client-signature branch August 9, 2024 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants