bazel-contrib / bazel-contrib/rules_jvm_external
Compile Line Length Limit hit under Windows 10.0 with bazel 4.0.0
- Dominant language
- Java
- Stars
- 373
- Forks
- 301
- Avg merge
- 6d 3h
- Merged PRs (30d)
- 5
Description
### Description of the problem / feature request:
I tried to compile the Java project on Windows 10, but because the project has too many dependencies, an error message is displayed during dependency parsing, indicating that command is longer than CreateProcessW's limit. My maven_install() defines nearly 500 dependencies.
### Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
workspace
maven_install(
artifacts = [
"org.apache.zookeeper:zookeeper-jute:3.6.0",
"org.apache.zookeeper:zookeeper-jute:3.6.2",
"org.apache.zookeeper:zookeeper:3.6.2-h0.gdd.sop.r18",
"io.grpc:grpc-api:1.36.1",
...
#....nearly 500 dependencies
]
)
### What operating system are you running Bazel on?
windows10 Bazel verison:4.0.0 rules_jvm_external version:4.0
### What's the output of bazel info release?
no such package '@maven//': Error while fetching artifact with coursier: java.io.IOException: ERROR:
src/main/native/windows/process.cc(165): CreateProcessWithExplicitHandles("D:\tools\javajdk\bin\java" -noverify -jar
C:/users/xxx/esyrauaw/external/maven/coursier fetch org.apache.zookeeper:zookeeper-jute:3.6.0
org.apache.zookeeper:zookeeper-jute:3.6.2 org.apache.zookeeper:zookeeper:3.6.2-h0.gdd.sop.r18 io.grpc:grpc-api:1.36.1
io.grpc:grpc-context:1.36.1 io.grpc:grpc-core:1.36.1 io.grpc:grpc-grpclb:1.36.1 io.grpc:grpc-netty:1.36.1 io.grpc:grpc-protobuf-
lite:1.36.1 io.grpc:grpc-protobuf:1.36.1 io.grpc:grpc-stub:1.36.1 org.quartz-scheduler.in(...)): command is longer than
CreateProcessW's limit (32767 characters)
Contributor guide
Research direction
Reproduce the maven_install() dependency fetch on Windows 10 with Bazel 4.0.0 and nearly 500 artifacts, then inspect the Windows process.cc path named in the error. Trace how the command is assembled and define completion as dependency parsing succeeding without exceeding CreateProcessW's limit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100