From 479f35b658c17ae7f6504cd1d044a5cfc7318e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Sat, 5 Oct 2024 10:25:02 +0200 Subject: [PATCH] Mage: avoid creating `web/static/emptyfile` with wrong permissions The empty file is created so that Go has something to embed when building Flamenco Manager, even when the static files aren't built yet. On macOS this was done with the wrong permissions, though. --- magefiles/clean.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magefiles/clean.go b/magefiles/clean.go index 659aaa6a..a5c64265 100644 --- a/magefiles/clean.go +++ b/magefiles/clean.go @@ -48,7 +48,7 @@ func cleanWebappStatic() error { // errors. This is done in the 'clean' function so that the Go code can be // built before building the webapp. emptyfile := filepath.Join(webStatic, "emptyfile") - if err := os.WriteFile(emptyfile, []byte{}, os.ModePerm); err != nil { + if err := os.WriteFile(emptyfile, []byte{}, 0o644); err != nil { return err } return nil