Should refuse to generate bindings if target directory already populated

Aperta
#253 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python, rust
Ambito
cli

Direzione di ricerca

Read the bindings generation entry point and find where it creates or replaces files in the target directory. Check how it handles both a directory populated by an earlier run and one containing only some generated paths. Done means generation stops with an error explaining that users can remove the conflicting files or choose another directory; the payload does not name relevant files or tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Per item 1 in https://github.com/bytecodealliance/componentize-py/issues/252#issuecomment-6448569301, if the user tries to generate bindings using the same target directory twice in a row, or if that directory is already populated with a subset files and/or subdirectories which the bindings generator would need to replace or overwrite, componentize-py should halt and print an error indicating that the user should either remove those files and/or directories or choose a different target directory.

Lingua principale
Rust
Stelle
284
Fork
56
Merge medio
2g 4h
PR unite (30g)
3

Preparare l'ambiente

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 bytecodealliance/componentize-py

Tutte le issue di bytecodealliance/componentize-py

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.