bazel-xcode / PodToBUILD

An easy way to integrate CocoaPods into Bazel
Apache License 2.0
323 stars 69 forks source link

TypeError: load() takes exactly 1 argument (2 given) #209

Closed Jacky-LinPeng closed 2 years ago

Jacky-LinPeng commented 2 years ago

Hello, I set WORKSPACE and pod.workspace according to the tutorial After I execute:

bazel run @rules_pods//:update_pods -- --src_root $PWD

PIC: image

image

image

log:

[source-only][~/Documents/bazel/examples/PodToBUILD-master/aa]$ sudo bazel run @rules_pods//:update_pods -- --src_root $PWD                   rvm:
Password:
Starting local Bazel server and connecting to it...
DEBUG: Rule 'rules_pods' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b523e1c567dce08f6afcde607fb9f62e1c33074891b1fcc1ee647aa2cc2f7e26"
DEBUG: Repository rules_pods instantiated at:
  /Users/mac/Documents/bazel/examples/PodToBUILD-master/aa/WORKSPACE:3:13: in <toplevel>
Repository rule http_archive defined at:
  /private/var/tmp/_bazel_root/65baa7e1beeb8bf9ba32b64053619473/external/bazel_tools/tools/build_defs/repo/http.bzl:353:31: in <toplevel>
INFO: Analyzed target @rules_pods//:update_pods (42 packages loaded, 272 targets configured).
INFO: Found 1 target...
Target @rules_pods//bin:update_pods up-to-date:
  bazel-bin/external/rules_pods/bin/update_pods
INFO: Elapsed time: 30.721s, Critical Path: 0.05s
INFO: 4 processes: 4 internal.
INFO: Build completed successfully, 4 total actions
INFO: Build completed successfully, 4 total actions
Updating pods in /Users/mac/Documents/bazel/examples/PodToBUILD-master/aa
Building PodToBUILD dependencies...
running: make release
skipping build..

Traceback (most recent call last):
  File "/private/var/tmp/_bazel_root/65baa7e1beeb8bf9ba32b64053619473/execroot/__main__/bazel-out/darwin-fastbuild/bin/external/rules_pods/bin/update_pods", line 528, in <module>
    main()
  File "/private/var/tmp/_bazel_root/65baa7e1beeb8bf9ba32b64053619473/execroot/__main__/bazel-out/darwin-fastbuild/bin/external/rules_pods/bin/update_pods", line 523, in main
    load("Pods.WORKSPACE")
  File "/private/var/tmp/_bazel_root/65baa7e1beeb8bf9ba32b64053619473/execroot/__main__/bazel-out/darwin-fastbuild/bin/external/rules_pods/bin/update_pods", line 492, in load
    exec(workspace_str, d, d)
  File "<string>", line 1, in <module>
TypeError: load() takes exactly 1 argument (2 given)

ERROR: TypeError: load() takes exactly 1 argument (2 given)

Jacky-LinPeng commented 2 years ago

It's my fault。。。。