fix workspace output and cleanup uncertainty

This commit is contained in:
2026-08-11 04:46:48 +02:00
parent c7f7a6e1b0
commit 69cc47c13f
12 changed files with 358 additions and 91 deletions
@@ -0,0 +1,13 @@
//go:build !windows && !linux && !darwin
package safeio
import "io/fs"
// Unsupported Unix targets fail closed rather than borrowing a platform-specific
// publication primitive. Add a dedicated implementation only after auditing that
// target's namespace and no-replace guarantees.
func ReadCanonicalRegular(string, int64) ([]byte, error) { return nil, ErrUnsafeFile }
func writeCanonicalExclusive(string, []byte, fs.FileMode) error { return ErrUnsafeFile }
func validateCanonicalOutputPath(string) error { return ErrUnsafeFile }
func validatePlatformPathSyntax(string) error { return nil }