Create clobbers a concurrently-created file
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
##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
- Lenguaje dominante
- Go
- Estrellas
- 1
- Forks
- 2
- Merge medio
- 16 h 20 min
- PR fusionados (30 d)
- 13
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Edwin-metcalf/MetCode
-
stripCodeFence unti testsAbierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
Edwin-metcalf/MetCode#30 ·
Los mantenedores suelen responder en 1 día
-
TestRunCommandHelper_RejectsPathEscapingRoot/absolute_path fails on WindowsPosiblemente ocupada @Edwin-metcalf la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Edwin-metcalf/MetCode#24 ·
Los mantenedores suelen responder en 1 día
-
Add a code coverage badge to CIAbiertodocumentation enhancement help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Edwin-metcalf/MetCode#19 ·
Los mantenedores suelen responder en 1 día
-
Add tests for resolveSafePathAbiertotesting
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Edwin-metcalf/MetCode#9 ·
Los mantenedores suelen responder en 1 día
-
Add a MakefileAbiertoenhancement good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Edwin-metcalf/MetCode#8 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Edwin-metcalf/MetCode
Issues similares
-
compress: block buffers get re-zeroed on every call, and the zeroing is immediately overwrittenAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ClickHouse/ch-go#1218 ·
Los mantenedores suelen responder en 13 días
-
effort:s impact:low raised-by:reviewer risk:low
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
medici-finance/assay#4251 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
automation models
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
golang-migrate/migrate#1457 ·
-
Make --data-dir a required flagAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día