Track DEP0190 warnings from http-client-python install and prepare scripts

Aperta
#11,603 1 commento 1 reazione 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@msyyc ci sta già lavorando.

Dal 10/8/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug emitter:client:python

Description

Running npm install in packages/http-client-python emits Node.js DEP0190 deprecation warnings from the package install and prepare setup scripts.

Repro

cd C:\dev\typespec\packages\http-client-python
npm install

Observed output

> @typespec/[email protected] install
> node ./eng/scripts/setup/install-runner.js

(node:27040) [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.
(Use `node --trace-deprecation ...` to show where the warning was created)
Found Python on your local environment and created a venv with all requirements.

> @typespec/[email protected] prepare
> node ./eng/scripts/setup/prepare-runner.js

(node:46868) [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.
(Use `node --trace-deprecation ...` to show where the warning was created)

Expected behavior

npm install should complete without Node.js deprecation warnings.

Notes

The warning points to child process usage with shell: true where arguments are passed separately. The relevant setup scripts appear to be:

  • packages/http-client-python/eng/scripts/setup/install-runner.js
  • packages/http-client-python/eng/scripts/setup/prepare-runner.js

This should be investigated and updated to avoid the deprecated child process pattern.

Lingua principale
Java
Stelle
5.9k
Fork
421
Merge medio
2g 3h
PR unite (30g)
176

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/typespec

Tutte le issue di microsoft/typespec

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.