Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Create clobbers a concurrently-created file

Abierto
#15 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go
Área
cli

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

bug

##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

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Edwin-metcalf/MetCode

Todos los issues de Edwin-metcalf/MetCode

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.