From 16e3538ea64a0b55df8948bfa672745e2731eca2 Mon Sep 17 00:00:00 2001 From: sneak Date: Wed, 17 Dec 2025 17:08:11 -0800 Subject: [PATCH] Document WriteToFile overwrite behavior, remove misplaced FIXME --- mfer/output.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mfer/output.go b/mfer/output.go index 9442ba9..0ff0e7d 100644 --- a/mfer/output.go +++ b/mfer/output.go @@ -5,9 +5,10 @@ import ( "os" ) +// WriteToFile writes the manifest to the given path. +// It will overwrite any existing file. Callers should check for existing files +// before calling if overwrite confirmation is needed. func (m *manifest) WriteToFile(path string) error { - // FIXME refuse to overwrite without -f if file exists - f, err := os.Create(path) if err != nil { return err