-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Automation] Generate Fluent Lite from TypeSpec playwrighttesting #43410
[Automation] Generate Fluent Lite from TypeSpec playwrighttesting #43410
Conversation
API change check APIView has identified API level changes in this PR and created following API reviews. com.azure.resourcemanager:azure-resourcemanager-playwrighttesting |
.append("/") | ||
.append("1.0.0-beta.3"); | ||
.append("1.0.0-beta.1"); |
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.
This version seems not correct.
This is set by package-version
/version
. It's passed in in autorest, but not in TypeSpec.
Possible solutions:
- Add
package-version
/version
to emitter option - In codegen, determine package version(if
version
is absent) - in
updateVersion
script, bump version. Though it'll be a bit tricky to decide the actual xxManager class..
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.
We can do an emitter option, though sending it across tsp-client
may be tricker.
Or a hack via env var...
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.
env var should do the trick. Yeah, version
seems no qualified candidate for an emitter 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.
Seems we have to strip the lib name for tsp-client:
--emitter-options="service-name=Playright"
(without @azure-tools/typespec-java
)
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.
Great. So we only need to add (maybe a hidden) package-version
, and set this in script.
Let me see if I can include it in the typespec-java release.
[Automation] Generate Fluent Lite from TypeSpec playwrighttesting