-
Notifications
You must be signed in to change notification settings - Fork 97
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
Update autorest version for Radius #8042
Update autorest version for Radius #8042
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8042 +/- ##
=======================================
Coverage 58.94% 58.94%
=======================================
Files 567 567
Lines 37726 37726
=======================================
Hits 22236 22236
Misses 13945 13945
Partials 1545 1545 ☔ View full report in Codecov by Sentry. |
d90069b
to
6bd877b
Compare
Radius functional test overview
Click here to see the list of tools in the current test run
Test Status⌛ Building Radius and pushing container images for functional tests... |
6bd877b
to
4f33be7
Compare
b0af588
to
5a5193f
Compare
Radius functional test overview
Click here to see the list of tools in the current test run
Test Status⌛ Building Radius and pushing container images for functional tests... |
@@ -79,27 +79,27 @@ generate-genericcliclient: generate-node-installed generate-autorest-installed | |||
.PHONY: generate-rad-corerp-client | |||
generate-rad-corerp-client: generate-node-installed generate-autorest-installed generate-tsp-installed generate-openapi-spec ## Generates the corerp client SDK (Autorest). | |||
@echo "$(AUTOREST_MODULE_VERSION) is module version" | |||
autorest pkg/corerp/api/README.md --tag=core-2023-10-01-preview | |||
autorest pkg/corerp/api/README.md --tag=core-2023-10-01-preview && rm pkg/corerp/api/v20231001preview/go.mod |
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.
What is the go.mod
that we are removing?
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're required to set values for module and module version because we set azure-arm: true in autorest configuration. This creates a go.mod file. It looks for existing go.mod in the output directory and creates it since it doesn't already exist. We can remove it post generation of file, in our usecase, since we want the generated output to be part of the existing module at the root of the project.
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.
how were we removing it before?
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 didn't need to. The updated version of autorest.go client creates a single module per invocation.
pkg/corerp/api/v20231001preview/fake/zz_generated_applications_server.go
Outdated
Show resolved
Hide resolved
pending questions - approved by mistake
5a5193f
to
1567ac9
Compare
1567ac9
to
dcbf17a
Compare
dcbf17a
to
7349271
Compare
7349271
to
7625b4f
Compare
7625b4f
to
ea6f130
Compare
8d14bff
to
b6dc9b7
Compare
Radius functional test overview
Click here to see the list of tools in the current test run
Test Status⌛ Building Radius and pushing container images for functional tests... |
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
b6dc9b7
to
18a7d71
Compare
Radius functional test overview
Click here to see the list of tools in the current test run
Test Status⌛ Building Radius and pushing container images for functional tests... |
Description
Updating autorest version for Radius.
@autorest/core v3.10.3
@autorest/go v4.0.0-preview.69
@autorest/cli is currently at 3.7.1. No updates needed, current code uses v3.7.1.
Notes: All clients generated will be included in this PR except for GenericResource (pkg/cli/clients_new/generated/)which needs some discussion with the team.
Fixes: #issue_number
Contributor checklist
Please verify that the PR meets the following requirements, where applicable: