Skip to content

Commit

Permalink
Workaround to disable sandboxing for skylark actions
Browse files Browse the repository at this point in the history
  • Loading branch information
amlinux committed Sep 3, 2017
1 parent 0f10049 commit 7f8a1a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bar.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ def _bar_impl(ctx):
outputs = [ctx.outputs.out],
inputs = ctx.files._foo_bin,
executable = ctx.executable._foo_bin,
arguments = [ctx.outputs.out.path],
execution_requirements = {"local": "1"},
)


Expand Down
5 changes: 5 additions & 0 deletions foo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
"""
Best source ever
"""

import sys

with open(sys.argv[1], 'w') as f:
f.write("Hi, I'm a file generated by %s.\n" % sys.executable)

0 comments on commit 7f8a1a9

Please sign in to comment.