google / subpar

Subpar is a utility for creating self-contained python executables. It is designed to work well with Bazel.
Apache License 2.0
567 stars 69 forks source link

bazel 0.27.1 deprecated API usages #113

Open captify-akraievoy opened 5 years ago

captify-akraievoy commented 5 years ago

there are four errors with last maybe caused by some missing configuration entries or something.


zzzap/external/subpar/compiler/BUILD:40:1: in parfile rule @subpar//compiler:compiler.par: 
Traceback (most recent call last):
    File "zzap/external/subpar/compiler/BUILD", line 40
        parfile(name = 'compiler.par')
    File "zzzap/external/subpar/subpar.bzl", line 28, in _parfile_impl
        main_py_file not in ctx.attr.src.data_runfiles.files
argument of type 'depset' is not iterable. in operator only works on lists, tuples, dicts and strings. Use --incompatible_depset_is_not_iterable=false to temporarily disable this check.```

zzzap/external/subpar/compiler/BUILD:40:1: in parfile rule @subpar//compiler:compiler.par: 
Traceback (most recent call last):
    File zzzap/external/subpar/compiler/BUILD", line 40
        parfile(name = 'compiler.par')
    File "zzzap/external/subpar/subpar.bzl", line 55, in _parfile_impl
        ctx.new_file((ctx.label.name + "_SOURCES"))
Use ctx.actions.declare_file instead of ctx.new_file. 
Use --incompatible_new_actions_api=false to temporarily disable this check.

zzzap/external/subpar/compiler/BUILD:40:1: in parfile rule @subpar//compiler:compiler.par: 
Traceback (most recent call last):
    File "zzzap/external/subpar/compiler/BUILD", line 40
        parfile(name = 'compiler.par')
    File "zzzap/external/subpar/subpar.bzl", line 79, in _parfile_impl
        ctx.action(inputs = (inputs + extra_inputs), <5 more arguments>)
Found tool(s) 'bazel-out/host/bin/external/subpar/compiler/compiler', 'bazel-out/host/bin/external/subpar/compiler/compiler' in inputs. A tool is an input with executable=True set. All tools should be passed using the 'tools' argument instead of 'inputs' in order to make their runfiles available to the action. This safety check will not be performed once the action is modified to take a 'tools' argument. To temporarily disable this check, set --incompatible_no_support_tools_in_action_inputs=false.

Building par file //zzzap:zzzap_par.par failed (Exit 1) compiler.par failed: error executing command bazel-out/host/bin/external/subpar/compiler/compiler.par --manifest_file bazel-out/k8-fastbuild/bin/zzzap/zzzap_par.par_SOURCES --outputpar ... (remaining 4 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
src/main/tools/linux-sandbox-pid1.cc:427: "execvp(bazel-out/host/bin/external/subpar/compiler/compiler.par, 0x2305950)": No such file or directory