high-yak-85899
06/09/2023, 12:01 AM#!/usr/bin/bash
shebang line, but this error makes it seem like it's getting invoked with sh
. Any ideas why that might be the case?
/tmp/pants-sandbox-fWn7OP/./jfrog.pex_pex_shim.sh: 2: set: Illegal option -o pipefail
broad-processor-92400
06/09/2023, 12:04 AM/usr/bin/bash
understands set -o pipefail
when run outside of pants?
if it does, https://www.pantsbuild.org/docs/troubleshooting#debug-tip-inspect-the-sandbox-with---keep-sandboxes gives a way to jump into the sandbox and simulate the commands pants was runninghigh-yak-85899
06/09/2023, 12:05 AMhigh-yak-85899
06/09/2023, 12:07 AMhigh-yak-85899
06/09/2023, 12:07 AMbroad-processor-92400
06/09/2023, 12:09 AM__run.sh
with two underscores.)
Weird 🤷♂️high-yak-85899
06/09/2023, 12:10 AM$ ls -la
total 52
drwxr-xr-x 5 nathanael nathanael 4096 Jun 8 17:39 .
drwxr-xr-x 9 nathanael nathanael 24576 Jun 8 17:38 ..
drwxr-xr-x 4 nathanael nathanael 4096 Jun 7 17:17 astranis-python
drwxr-xr-x 5 nathanael nathanael 4096 Jun 8 17:42 jfrog.pex
-rwxr-xr-x 1 nathanael nathanael 3246 Jun 7 17:17 jfrog.pex_bin_python_shim.sh
-rwxr-xr-x 1 nathanael nathanael 3239 Jun 8 17:39 jfrog.pex_pex_shim.sh
drwxr-xr-x 2 nathanael nathanael 4096 Jun 7 17:17 jfrog_secrets
high-yak-85899
06/09/2023, 12:10 AMenough-analyst-54434
06/09/2023, 12:46 AMPOSIXLY_CORRECT
?enough-analyst-54434
06/09/2023, 12:47 AMhigh-yak-85899
06/09/2023, 2:10 AMhigh-yak-85899
06/09/2023, 2:10 AMhigh-yak-85899
06/09/2023, 6:27 PMpants package
the pex and then run things as opposed to pants run
, things work fine.enough-analyst-54434
06/09/2023, 6:44 PMenough-analyst-54434
06/09/2023, 6:45 PM