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

Compute admin module generation fails with "NewQuotaParameter is not found in the new refs collection" error #361

Closed
seyadava opened this issue Jun 12, 2019 · 1 comment

Comments

@seyadava
Copy link

I have created following readme files in powershell and specs repos:
Powershell repo:
https://github.com/seyadava/azure-powershell/blob/azscomputegen/src/Compute/Compute/readme.md
https://github.com/seyadava/azure-powershell/blob/azscomputegen/src/readme.azurestack.md

Specs repo:
https://github.com/seyadava/azure-rest-api-specs/blob/azscomputegen/specification/azsadmin/resource-manager/compute/readme.md
https://github.com/seyadava/azure-rest-api-specs/blob/azscomputegen/specification/azsadmin/resource-manager/compute/readme.azsautogen.md

I run autorest command with no parameters from the directory that contains https://github.com/seyadava/azure-powershell/blob/azscomputegen/src/Compute/Compute/readme.md file. It fails with the following error:
C:\Users\username.autorest@microsoft.azure_autorest-core@3.0.5456\node_modules@microsoft.azure\autorest-core\dist\lib\pipeline\pipeline.js - FAILURE {}
Process() cancelled due to exception : $ref to original location 'https://github.com/seyadava/azure-rest-api-specs/blob/azscomputegen/specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2018-02-09/Quotas.json#/components/parameters/NewQuotaParameter' is not found in the new refs collection / Error: $ref to original location 'https://github.com/seyadava/azure-rest-api-specs/blob/azscomputegen/specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2018-02-09/Quotas.json#/components/parameters/NewQuotaParameter' is not found in the new refs collection
at MultiAPIMerger.updateRefs (C:\Users\seyadava.autorest@microsoft.azure_autorest-core@3.0.5456\node_modules@microsoft.azure\autorest-core\dist\lib\pipeline\plugins\merger.js:230:31)
at MultiAPIMerger.updateRefs (C:\Users\seyadava.autorest@microsoft.azure_autorest-core@3.0.5456\node_modules@microsoft.azure\autorest-core\dist\lib\pipeline\plugins\merger.js:234:22)
at MultiAPIMerger.updateRefs (C:\Users\seyadava.autorest@microsoft.azure_autorest-core@3.0.5456\node_modules@microsoft.azure\autorest-core\dist\lib\pipeline\plugins\merger.js:234:22)
at MultiAPIMerger.updateRefs (C:\Users\seyadava.autorest@microsoft.azure_autorest-core@3.0.5456\node_modules@microsoft.azure\autorest-core\dist\lib\pipeline\plugins\merger.js:234:22)
at MultiAPIMerger.updateRefs (C:\Users\seyadava.autorest@microsoft.azure_autorest-core@3.0.5456\node_modules@microsoft.azure\autorest-core\dist\lib\pipeline\plugins\merger.js:234:22)
at MultiAPIMerger.finish (C:\Users\seyadava.autorest@microsoft.azure_autorest-core@3.0.5456\node_modules@microsoft.azure\autorest-core\dist\lib\pipeline\plugins\merger.js:217:14)
at MultiAPIMerger.runProcess (/node_modules/@microsoft.azure/datastore/dist/processor.js:78:24)
Error: $ref to original location 'https://github.com/seyadava/azure-rest-api-specs/blob/azscomputegen/specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2018-02-09/Quotas.json#/components/parameters/NewQuotaParameter' is not found in the new refs collection

@bganapa
Copy link
Member

bganapa commented Jan 21, 2020

This has been fixed

@dolauli dolauli closed this as completed Jun 17, 2021
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

No branches or pull requests

3 participants