Skip to content

Commit

Permalink
Merge pull request #3306 from Azure/FixBrokenGeneration
Browse files Browse the repository at this point in the history
Fix broken generation
  • Loading branch information
anthony-c-martin authored Jan 27, 2025
2 parents 322e6da + a3f3dfa commit 45208a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions generator/autogenlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { postProcessor as networkPostProcessor } from './processors/Microsoft.Ne
import { postProcessor as azureStackHciPostProcessor } from './processors/Microsoft.AzureStackHCI';
import { postProcessor as resourcesPostProcessor } from './processors/Microsoft.Resources';
import { postProcessor as serviceFabricPostProcessor } from './processors/Microsoft.ServiceFabric';
import { postProcessor as awsConnectorPostProcessor } from './processors/Microsoft.AwsConnector';
import { lowerCaseEquals } from './utils';
import { detectProviderNamespaces } from './generate';

Expand Down Expand Up @@ -168,6 +169,11 @@ const autoGenList: AutoGenConfig[] = [
basePath: 'automation/resource-manager',
namespace: 'Microsoft.Automation',
},
{
basePath: 'awsConnector/resource-manager',
namespace: 'Microsoft.AwsConnector',
postProcessor: awsConnectorPostProcessor
},
{
basePath: 'azurearcdata/resource-manager',
namespace: 'Microsoft.AzureArcData',
Expand Down
5 changes: 5 additions & 0 deletions generator/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ export function executeCmd(cwd: string, cmd: string, args: string[]) : Promise<n
const child = spawn(cmd, args, {
cwd: cwd,
windowsHide: true,
env: {
...process.env,
// needed to workaround dotnet globalization issues in autorest .NET plugins
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: '1',
},
});

child.stdout.on('data', data => process.stdout.write(colors.grey(data.toString())));
Expand Down

0 comments on commit 45208a0

Please sign in to comment.