Create clobbers a concurrently-created file
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
The bug is in the create-file helper in Files.go, which overwrites a file that appeared while the user was on the confirmation prompt of the file edit tool. Start by reading that helper and the confirmation flow that calls it, then reproduce by creating the target file during the prompt. Done when a file that appeared during confirmation is either not overwritten or the user is warned first, for example through an O_EXCL open that returns an error. The issue leaves the approach open, so confirm the intended behaviour with the maintainer before choosing one.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
##What
Create a file is now under edit file tool. Therefore if a user creates a file while waiting in the confirmation stage it will clobber the file.
##Where
Files.go in createFilehelper
##What should happen
- should have some recheck if the file has changed
- prompt the user if there is content that will be overwritten
- could implement a O_EXCL flag as well to get error if it appears during confirmation
- Lingua principale
- Go
- Stelle
- 1
- Fork
- 2
- Merge medio
- 1h 31m
- PR unite (30g)
- 7
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Edwin-metcalf/MetCode
-
documentation enhancement help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Edwin-metcalf/MetCode#19 ·
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Edwin-metcalf/MetCode#18 ·
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Edwin-metcalf/MetCode#16 ·
-
testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Edwin-metcalf/MetCode#9 ·
-
Add a MakefileApertaenhancement good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Edwin-metcalf/MetCode#8 ·
Tutte le issue di Edwin-metcalf/MetCode
Issue simili
-
area: watch bug priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
mariadb-operator/mariadb-operator#1962 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
eugenioenko/ttt#919 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
QuantumNous/new-api#7839 ·
I maintainer di solito rispondono entro 1 giorno
-
bug needs-triage service/costoptimizationhub
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
hashicorp/terraform-provider-aws#50507 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno