all: rely on umask when creating files and directories
That is, create directories with permission bits 0o777
and files with permission bits 0o666, and let the user's umask setting
decide whether groups and other users should also have access.
This is pretty common in Go, and works as best as can be expected
on all platforms including Windows.
We fix all code except the copied golangorgx gopls code.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I306613b35caab7d8ac8db2ec05a856802b1eb08b
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1200569
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Matthew Sackman <matthew@cue.works>