Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type 'depset' is not iterable. Use the to_list() method to get a list #119

Closed
javier-b-perez opened this issue Jul 16, 2019 · 2 comments · Fixed by #120
Closed

type 'depset' is not iterable. Use the to_list() method to get a list #119

javier-b-perez opened this issue Jul 16, 2019 · 2 comments · Fixed by #120

Comments

@javier-b-perez
Copy link
Contributor

bazel --version
bazel 0.28.0

I see this error when I try to use push-build (from k8s master):

ERROR: /home/jbperez/go/src/k8s.io/kubernetes/BUILD.bazel:39:1: in gcs_upload rule //:push-build:
Traceback (most recent call last):
File "/home/jbperez/go/src/k8s.io/kubernetes/BUILD.bazel", line 39
gcs_upload(name = 'push-build')
File "/home/jbperez/.cache/bazel/_bazel_jbperez/770a5393ec0b756d4b1d36719db44027/external/io_k8s_repo_infra/defs/build.bzl", line 20, in _gcs_upload_impl
for f in t.files: ...
type 'depset' is not iterable. Use the to_list() method to get a list. Use --incompatible_depset_is_not_iterable=false to temporarily disable this check.
ERROR: Analysis of target '//:push-build' failed; build aborted: Analysis of target '//:push-build' failed; build aborted

@javier-b-perez
Copy link
Contributor Author

This is not the end:
ctx.file_action(output = ctx.outputs.targets, cont...))
Use ctx.actions.write instead of ctx.file_action.
Use --incompatible_new_actions_api=false to temporarily disable this check.

@javier-b-perez
Copy link
Contributor Author

INFO: Build completed successfully, 869 total actions
Traceback (most recent call last):
File "../io_k8s_repo_infra/defs/gcs_uploader", line 340, in
Main()
File "../io_k8s_repo_infra/defs/gcs_uploader", line 330, in Main
os.execv(args[0], args)
OSError: [Errno 2] No such file or directory: '/home/jbperez/.cache/bazel/_bazel_jbperez/770a5393ec0b756d4b1d36719db44027/execroot/io_k8s_kubernetes/bazel-out/k8-fastbuild/bin/push-build.runfiles/bazel_tools/tools/python/py3wrapper.sh'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant