1
0
mirror of https://github.com/moby/buildkit.git synced 2025-04-20 05:07:56 +03:00
buildkit/source/git/source_unix_test.go
Tonis Tiigi 899cac1697
git: add file mode verification to tests
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-07-02 22:41:07 -07:00

12 lines
220 B
Go

//go:build !windows
// +build !windows
package git
import "syscall"
func init() {
// Reset umask to zero to match buildkitd and to make sure the tests do not rely on standard umask from the host.
syscall.Umask(0)
}