| name | fix-sync-sdk |
| description | **WORKFLOW SKILL** - Update TypeSpec project, regenerate SDK, to fix error on SDK project. USE FOR: "fix sdk lib <project-name>". |
Skill Instructions
Request
The request would come in the form of:
- "Fix sdk lib "
- "Fix sdk lib , update TypeSpec project to "
Checklist
- When updating "client.tsp", always use "java" scope, and add new lines to the end of the file.
Required repositories
You have full access to these locally cloned repositories/folders.
Steps
Before you start
Verify that specs repo is on "main" branch, and is up-to-date.
Note the commit hash of "main" branch, call it "".
Run npm ci in "eng/common/tsp-client" folder in sdk repo to make sure the tsp-client is installed.
There can be multiple projects to fix in one request. Repeat the following steps for each "".
Find the project in sdk repo
Search for folder of "" under "/sdk" in sdk repo. It should be in the form of "/sdk//".
"" refers to the full path of the project folder.
Find the TypeSpec project in specs repo
There is a "tsp-location.yaml" file under "" folder.
Read value of directory property in this file.
This is the relative path of the TypeSpec project in specs repo.
"" refers to the full path of this TypeSpec project folder in specs repo.
When there is no ""
Regenerate the project in sdk repo
Update the "tsp-location.yaml" file, update the property to "".