-
Notifications
You must be signed in to change notification settings - Fork 226
Pin tsp-client under eng/common/tools #12060
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
Conversation
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.
Pull Request Overview
This PR pins the TypeSpec client generator CLI to a specific version to ensure consistent tooling across the project.
- Adds a package.json file to pin
@azure-tools/typespec-client-generator-clito version 0.28.1
Files not reviewed (1)
- eng/common/tools/package-lock.json: Language not supported
|
The following pipelines have been queued for testing: |
|
Looks good to me to keep the name as |
|
Do we want any wrappers or at least some instructions on how to consume this? i.e. I assume one would likely As for the directory I'm curious about @mikeharder's take on this to see if we should put it at the root of the |
mikeharder
left a comment
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.
blocking to leave feedback
High-level, I agree with Wes. I think we should:
If we ever decide to merge JS tools into a single lockfile, it might look like this: Advantages:
Disadvantages:
@weshaggard: Do you have a preference? Since cspell and tsp-client are totally unrelated, and we only have two node-based tools, i'd probably keep them separate for now. But, we can always change this later on, and it won't even be a breaking change, if we don't move or break the PWSH wrappers. CC: @danieljurek, @benbp |
mikeharder
left a comment
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.
see comment
|
I also prefer to keep Is it too much to wrap the execution of Should we start with minimum version containing |
|
I think having them separate would be good as well. As for the wrapper it is more of a guide but folks can use it if they like. The .NET command will work but someone still needs to run |
Fine with me, at least for now. It's a little more work for engsys, to update two lockfiles in eng/common.
The pwsh script should just delegate all CLI arguments to tsp-client. The pwsh script is just responsible for installing the package (if not already installed), then calling For perf, the pwsh script should not run |
The main complaint I have heard from language repo owners, is they don't want to deal with the nuances of commands like |
The wrapped powershell script includes the installation part. I expect that invoking the powershell script will work for .NET case. |
|
The following pipelines have been queued for testing: |
|
The following pipelines have been queued for testing: |
mikeharder
left a comment
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.
approved pending fixes to latest comments
|
The following pipelines have been queued for testing: |
|
The following pipelines have been queued for testing: |
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#12060 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) --------- Co-authored-by: catalinaperalta <[email protected]> Co-authored-by: ray chen <[email protected]> Co-authored-by: Mike Harder <[email protected]>
Co-authored-by: Mike Harder <[email protected]>
Co-authored-by: Mike Harder <[email protected]>
Co-authored-by: Wes Haggard <[email protected]>
Co-authored-by: Mike Harder <[email protected]>
5da5402 to
a8724aa
Compare
|
The following pipelines have been queued for testing: |
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#12060 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) --------- Co-authored-by: catalinaperalta <[email protected]> Co-authored-by: ray chen <[email protected]> Co-authored-by: Mike Harder <[email protected]>
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#12060 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) --------- Co-authored-by: catalinaperalta <[email protected]> Co-authored-by: ray chen <[email protected]> Co-authored-by: Mike Harder <[email protected]>
|
|
||
| ```bash | ||
| # Navigate to this directory | ||
| cd eng/common/tsp-client |
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.
@raych1 is this guidance only for pipelines? I dont think switching to this directory is very user-friendly for regular developers in the language repos.
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.
@catalinaperalta per the best practices NPM recommends, we only suggest user to go to the eng/common/tsp-client folder then run the command from there. Refer to this comment
Fixes #11950