Justin Chadwell e61a8cf637 vendor: update buildkit to master@31c870e82a48
Signed-off-by: Justin Chadwell <me@jedevc.com>
2023-05-18 14:25:31 +01:00

15 lines
242 B
Go

//go:build linux || darwin || !windows
// +build linux darwin !windows
package in_toto
import "golang.org/x/sys/unix"
func isWritable(path string) error {
err := unix.Access(path, unix.W_OK)
if err != nil {
return err
}
return nil
}