[RLC] Top-level index file could not be generated in Windows #1720
Labels
Client
This issue points to a problem in the data-plane of the library.
DPG/RLC v2.0 GA
Epic: Model Generation
https://github.com/Azure/cadl-azure/issues/1944
RLC
WS: Code Generation
When we extract the top-level index file path we use
/src/
to match the path and get the proper index. However this may not work in Windows env because our path looks likeC:\\Users\\marygao\\...\\cadl-rlc-test\\test\\openai\\cadl-output\\src\\inference
then the file could not be generated.https://github.com/Azure/autorest.typescript/blob/main/packages/rlc-common/src/buildTopLevelIndexFile.ts#L45
Another small bug is when we clear our src path the top-level index could not be cleared.
https://github.com/Azure/autorest.typescript/blob/main/packages/cadl-typescript/src/index.ts#L45
The text was updated successfully, but these errors were encountered: