Azure / Azure/azure-sdk-tools

Conflict typespec complier versions between @azure-tools/typespec-autorest and @azure-tools/typespec-client-generator-cli

Open
#10,367 4 comments 0 reactions 1 assignee Claimed by @raych1 View on GitHub
Automation Tool
Dominant language
C#
Stars
135
Forks
260
Avg merge
1d 22h
Merged PRs (30d)
115

Description

Currently, we fix the version of @azure-tools/typespec-client-generator-cli but it's @typespec/compiler is too old.

```
03:26:31.019 cmderr [automation_init.sh] npm warn ERESOLVE overriding peer dependency
03:26:31.019 cmderr [automation_init.sh] npm warn While resolving: @azure-tools/typespec-autorest@0.54.0
03:26:31.020 cmderr [automation_init.sh] npm warn Found: @typespec/compiler@0.67.2
03:26:31.020 cmderr [automation_init.sh] npm warn node_modules/@azure-tools/typespec-client-generator-cli/node_modules/@typespec/compiler
03:26:31.020 cmderr [automation_init.sh] npm warn peer @typespec/compiler@">=0.58.0 <1.0.0" from @azure-tools/typespec-client-generator-cli@0.14.1
03:26:31.020 cmderr [automation_init.sh] npm warn node_modules/@azure-tools/typespec-client-generator-cli
03:26:31.020 cmderr [automation_init.sh] npm warn @azure-tools/typespec-client-generator-cli@"0.14.1" from the root project
03:26:31.021 cmderr [automation_init.sh] npm warn
03:26:31.021 cmderr [automation_init.sh] npm warn Could not resolve dependency:
03:26:31.021 cmderr [automation_init.sh] npm warn peer @typespec/compiler@"^1.0.0-rc.0" from @azure-tools/typespec-autorest@0.54.0
03:26:31.021 cmderr [automation_init.sh] npm warn node_modules/@azure-tools/typespec-client-generator-cli/node_modules/@azure-tools/typespec-autorest
03:26:31.021 cmderr [automation_init.sh] npm warn @azure-tools/typespec-autorest@">=0.44.0 <1.0.0" from @azure-tools/typespec-client-generator-cli@0.14.1
03:26:31.021 cmderr [automation_init.sh] npm warn node_modules/@azure-tools/typespec-client-generator-cli
03:26:31.021 cmderr [automation_init.sh] npm warn 1 more (@azure-tools/rest-api-diff)
03:26:31.022 cmderr [automation_init.sh] npm warn
03:26:31.022 cmderr [automation_init.sh] npm warn Conflicting peer dependency: @typespec/compiler@1.0.0-rc.0
03:26:31.022 cmderr [automation_init.sh] npm warn node_modules/@typespec/compiler
03:26:31.022 cmderr [automation_init.sh] npm warn peer @typespec/compiler@"^1.0.0-rc.0" from @azure-tools/typespec-autorest@0.54.0
03:26:31.022 cmderr [automation_init.sh] npm warn node_modules/@azure-tools/typespec-client-generator-cli/node_modules/@azure-tools/typespec-autorest
03:26:31.022 cmderr [automation_init.sh] npm warn @azure-tools/typespec-autorest@">=0.44.0 <1.0.0" from @azure-tools/typespec-client-generator-cli@0.14.1
03:26:31.022 cmderr [automation_init.sh] npm warn node_modules/@azure-tools/typespec-client-generator-cli
```
![Image](https://github.com/user-attachments/assets/6f5109d1-766f-41fa-87f1-4f3aaef67db1)

piepline log: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4761235&view=logs&j=f38d9a4f-f3b8-55f9-3f85-04d40f5c1fc2&t=ceba0f41-7307-52b4-7c7a-37e724e7c1f1

scriptfor installing dependency: https://github.com/Azure/azure-sdk-for-js/blob/main/.scripts/automation_init.sh#L2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.