зеркало из https://github.com/Azure/autorest.git
Fix: Load default config in autorest cli to resolve core version (#4011)
This commit is contained in:
Родитель
c4c1cac561
Коммит
8719e30c32
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"changes": [
|
||||
{
|
||||
"packageName": "autorest",
|
||||
"comment": "**Fix** Load default configuration when resolving core version",
|
||||
"type": "patch"
|
||||
}
|
||||
],
|
||||
"packageName": "autorest",
|
||||
"email": "tiguerin@microsoft.com"
|
||||
}
|
|
@ -47,7 +47,7 @@ export const findCoreVersionUsingConfiguration = async (args: AutorestArgs): Pro
|
|||
const loader = new ConfigurationLoader(logger, defaultConfigUri, configFileOrFolder, {
|
||||
extensionManager: await extensionManager,
|
||||
});
|
||||
const { config } = await loader.load([args], false);
|
||||
const { config } = await loader.load([args], true);
|
||||
if (config.version) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(
|
||||
|
|
Загрузка…
Ссылка в новой задаче