diff --git a/go/private/skylib/lib/unittest.bzl b/go/private/skylib/lib/unittest.bzl index 9ab2857657..0862130f5d 100644 --- a/go/private/skylib/lib/unittest.bzl +++ b/go/private/skylib/lib/unittest.bzl @@ -166,10 +166,10 @@ def _end(env): "EOF", "exit %d" % len(env.failures), ]) - env.ctx.file_action( + env.ctx.actions.write( output = env.ctx.outputs.executable, content = cmd, - executable = True, + is_executable = True, ) def _fail(env, msg):