create: overwrite follows target symlinks and deletes linked contents
Maintainer antworten meist innerhalb von 1 Tag
@leslieeilsel arbeitet bereits daran.
Seit 11.8.2026.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
Überprüfe den Überschreibablauf von vp create und den Entwurf der Korrektur in #2418 und reproduziere anschließend den Symlink-Fall aus diesem Issue unter macOS oder auf einem anderen lokalen Dateisystem. Als erledigt gilt die Bestätigung, dass „Vorhandene Dateien entfernen und fortfahren“ keine Inhalte außerhalb des Symlink-Eintrags löscht und dass der Prompt oder das Verhalten jedes aufgelöste Ziel explizit macht.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
When vp create targets a non-empty directory symbolic link, choosing “Remove existing files and continue” deletes files inside the linked directory instead of removing or rejecting the link itself.
The confirmation prompt only displays the target path. It does not indicate that deletion will occur in the directory referenced by that path.
Reproduction
-
Create a directory containing a sentinel file:
mkdir linked-directory printf 'keep\n' > linked-directory/keep.txt -
Create a target directory symlink:
ln -s "$PWD/linked-directory" new-project -
Start any
vp createflow withnew-projectas its target directory. -
When prompted, select “Remove existing files and continue”.
-
Check the linked directory:
test -e linked-directory/keep.txt
Actual behavior
linked-directory/keep.txt is deleted. Other entries in the linked directory are also removed recursively, except for the existing .git preservation behavior.
Expected behavior
The overwrite flow should not implicitly traverse the final target symlink and delete its destination contents.
It should treat the symbolic link as a distinct filesystem entry, or otherwise make the resolved deletion target explicit before performing a destructive operation.
Impact
This can cause irreversible local data loss outside the symbolic-link entry shown by the prompt.
The trigger is limited: the create target must be a symbolic link and the user must confirm removal. This is therefore a low-frequency but high-impact local data-loss issue, not a remote security vulnerability.
Environment
- Reproduced on macOS arm64
- Node.js v25.9.0
- Vite+ revision:
295c8d6069605a249ed39e8c5e4d4d3d79e4be3e
A draft fix is available in #2418.
- Vorherrschende Sprache
- Rust
- Sterne
- 6.5k
- Forks
- 297
- Ø Merge
- 20 Std. 18 Min.
- Gemergte PRs (30 T.)
- 236
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus voidzero-dev/vite-plus
-
triage: not actionable
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
voidzero-dev/vite-plus#3296 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
pending triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
voidzero-dev/vite-plus#3235 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Docker guide: the runtime stage needs libatomic1 for Node.js 25 and laterEvtl. vergeben @kshanxs hat das vor 9 Tagen übernommen. Offendocumentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
voidzero-dev/vite-plus#3219 · 2 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
pending triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
voidzero-dev/vite-plus#2882 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Upgrade Upstream Dependencies timed outEvtl. vergeben @fengmk2 hat das heute übernommen. Offenupgrade-deps-timeout
voidzero-dev/vite-plus#3319 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in voidzero-dev/vite-plus
Ähnliche Issues
-
area:docs documentation good first issue priority:medium
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
rtk-ai/rtk#4958 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
feature
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
calagopus/panel#285 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: streamed Responses API flex_unavailable error maps to 500 InternalServerError instead of 429Offenllm translation
Schwierigkeit 2/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
BerriAI/litellm#49736 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
question
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
autoindex tests: denied loopback bind shows only PermissionDenied (255 failures), not the causeOffenfield-report
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag