https://pantsbuild.org/ logo
#development
Title
# development
f

fast-nail-55400

10/26/2021, 2:32 PM
I’m getting a failure to find java when running
./pants lint check src/python/pants/backend/java::
on latest
main
(plus my PR for third-party package dep inference):
Copy code
ValueError: Failed to locate Java for JDK `adopt:1.11`:
setrlimit to increase file descriptor limit failed, errno 22
Downloading <https://github.com/coursier/jvm-index/raw/master/index.json>
Downloaded <https://github.com/coursier/jvm-index/raw/master/index.json>
Downloading <https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11%2B28/OpenJDK11-jdk_x64_mac_hotspot_11_28.tar.gz>
/bin/bash: /bin/java: No such file or directory
seems like could be the flaky internet at my current location since running it again got a “Still downloading” message from coursier. and third time it succeeded (or at least got an error messagae related to my new code)
so maybe could make coursier more resistant to flaky internet?
w

witty-crayon-22786

10/26/2021, 4:10 PM
hm. could be? we should keep adding
set -e
to clarify scripts where we might be proceeding past errors
…although, i think that this particular one should already have been affected by https://github.com/pantsbuild/pants/blob/e3c88fc51212059c291572def0febf1adc82e0a4/src/python/pants/jvm/jdk_rules.py#L72-L74 … hm.