Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Create clobbers a concurrently-created file

Aperta
#15 0 commenti 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
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
cli

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

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
Lingua principale
Go
Stelle
1
Fork
2
Merge medio
1h 31m
PR unite (30g)
7

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 Edwin-metcalf/MetCode

Tutte le issue di Edwin-metcalf/MetCode

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.