Azure / Azure/typespec-azure

Python emitter using deprecated node api in install step

Open
#4,283 2 comments 1 reaction 3 assignees Claimed by @l0lawrence View on GitHub
emitter:python needs-area
Dominant language
TypeScript
Stars
27
Forks
90
Avg merge
1d 22h
Merged PRs (30d)
156

Description

```
packages/typespec-python install$ tsx ./eng/scripts/setup/run-python3.ts ./eng/scripts/setup/install.py
packages/typespec-python install: (node:2629) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
packages/typespec-python install: (Use `node --trace-deprecation ...` to show where the warning was created)
packages/typespec-python install: Done
packages/typespec-python prepare$ tsx ./eng/scripts/setup/run-python3.ts ./eng/scripts/setup/prepare.py
packages/typespec-python prepare: (node:2670) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
packages/typespec-python prepare: (Use `node --trace-deprecation ...` to show where the warning was created)
packages/typespec-python prepare: Collecting pyright==1.1.391 (from -r /home/runner/work/typespec-azure/typespec-azure/packages/typespec-python/dev_requirements.txt (line 2))
packages/typespec-python prepare: Downloading pyright-1.1.391-py3-none-any.whl.metadata (6.7 kB)
packages/typespec-python prepare: Collecting pylint==3.2.7 (from -r /home/runner/work/typespec-azure/typespec-azure/packages/typespec-python/dev_requirements.txt (line 3))
```

The error is coming from the execution of the TS script `packages/typespec-python/eng/scripts/setup/run-python3.ts`

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.