curved-television-6568
09/23/2021, 7:00 AMcd
command in the CI test env? [SOLVED]
pants.engine.process.BinaryNotFoundError: Cannot find `cd` on `['/bin', '/home/linuxbrew/.linuxbrew/bin', '/home/linuxbrew/.linuxbrew/sbin', '/home/runner/.cache/pants/pants_dev_deps/Linux.x86_64.x86_64.py37.venv/bin', '/home/runner/.config/composer/vendor/bin', '/home/runner/.dotnet/tools', '/home/runner/.local/bin', '/opt/hostedtoolcache/Java_Adopt_jdk/11.0.11-9/x64/bin', '/opt/hostedtoolcache/Python/2.7.18/x64/bin', '/opt/hostedtoolcache/Python/3.5.10/x64/bin', '/opt/hostedtoolcache/Python/3.6.15/x64/bin', '/opt/hostedtoolcache/Python/3.7.12/x64', '/opt/hostedtoolcache/Python/3.7.12/x64/bin', '/opt/hostedtoolcache/Python/3.8.11/x64/bin', '/opt/hostedtoolcache/Python/3.9.7/x64/bin', '/opt/pipx_bin', '/sbin', '/snap/bin', '/usr/bin', '/usr/games', '/usr/local/.ghcup/bin', '/usr/local/bin', '/usr/local/games', '/usr/local/sbin', '/usr/sbin', '/usr/share/rust/.cargo/bin']`. Please ensure that it is installed so that Pants can execute experimental_shell_command src:paths.
curved-television-6568
09/23/2021, 7:53 AMpants.engine.process.BinaryNotFoundError: Cannot find `cd` on `['/bin', '/root/.cache/pants/pants_dev_deps/Linux.x86_64.x86_64.py38.venv/bin', '/root/.cargo/bin', '/sbin', '/usr/bin', '/usr/local/bin', '/usr/local/sbin', '/usr/sbin']`. Please ensure that it is installed so that Pants can execute experimental_shell_command src:paths.
curved-television-6568
09/23/2021, 7:57 AMcd
command is a builtin one, in that version of bash…
# on my Mac
$ which cd
/usr/bin/cd
# on Ubuntu 20.04
root@7a8366367869:/src# which cd
root@7a8366367869:/src#
curved-television-6568
09/23/2021, 7:58 AMcurved-television-6568
09/23/2021, 8:00 AMcd
is always builtin.. only there’s some weird script for it on my system..curved-television-6568
09/23/2021, 8:00 AMcurved-television-6568
09/23/2021, 9:14 AMcurved-television-6568
09/23/2021, 9:17 AMshell_library
required based on inspecting the command
😉curved-television-6568
09/23/2021, 9:40 AMException: Failed to execute: Process {
argv: [
"/home/runner/.cache/coursier/jvm/adopt@1.11.0-11/bin/java",
"-version",
],
hundreds-father-404
09/23/2021, 1:58 PMfast-nail-55400
09/23/2021, 1:59 PMfast-nail-55400
09/23/2021, 1:59 PMhundreds-father-404
09/23/2021, 2:16 PMfast-nail-55400
09/23/2021, 2:18 PMfast-nail-55400
09/23/2021, 2:19 PMfast-nail-55400
09/23/2021, 2:20 PMhundreds-father-404
09/23/2021, 2:22 PMfast-nail-55400
09/23/2021, 2:22 PMfast-nail-55400
09/23/2021, 2:23 PMhundreds-father-404
09/23/2021, 2:29 PMfast-nail-55400
09/23/2021, 2:37 PM@pytest.mark.skipif("PANTS_RUN_JDK_TESTS" not in os.environ, reason="Skip JDK tests")
fast-nail-55400
09/23/2021, 2:38 PMPANTS_RUN_JDK_TESTS
to still run the tests.fast-nail-55400
09/23/2021, 2:59 PM