Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

unable to generate: argument list too long #73

Closed
estk opened this issue Mar 9, 2021 · 1 comment
Closed

unable to generate: argument list too long #73

estk opened this issue Mar 9, 2021 · 1 comment

Comments

@estk
Copy link

estk commented Mar 9, 2021

generate.sh

VERSION="0.4.5"
...
$ bazel version
Bazelisk version: development
Build label: 3.7.2
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Thu Dec 17 17:02:20 2020 (1608224540)
Build timestamp: 1608224540
Build timestamp as int: 1608224540

$ ../bazel_compilation_database.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   142  100   142    0     0    535      0 --:--:-- --:--:-- --:--:--   535
100 14524  100 14524    0     0  25889      0 --:--:-- --:--:-- --:--:--     0
/usr/local/bin/bazel-compdb: line 103: /usr/local/bin/bazel: Argument list too long
/usr/local/bin/bazel-compdb: line 103: /usr/local/bin/bazel: Argument list too long
@siddharthab
Copy link
Collaborator

We probably need to use --target-pattern-file flag here instead of passing the targets on the command line.

Other alternatives are mentioned in bazelbuild/bazel#8609

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

No branches or pull requests

2 participants