quaint-telephone-89068
02/27/2023, 7:14 PM14:05:37.08 [ERROR] Parsing build/scripts/dev_container.sh for dependency inference failed because Shellcheck's output could not be loaded as JSON. Please open a GitHub issue at <https://github.com/pantsbuild/pants/issues/new> with this error message attached.
shellcheck version: v0.8.0
process_result.stdout:
Pants version
2.16.0.dev5
OS
Mac M1
Additional info
The script in question is simple, i.e. without any dependencies.
# cat build/scripts/dev_container.sh
set -euxf pipefail
if [ ! -f pants ]; then
echo "Run this from the repo root: ./build/scripts/dev_container.sh"
exit 1
fi
: ${IMG_NAME:=<http://ghcr.io/x-deploy-image|ghcr.io/x-deploy-image>}
: ${IMG_TAG:=@sha256:...}
: ${IMG:=$IMG_NAME$IMG_TAG}
: ${DEV_HOME:=${HOME}/.cache/x}
mkdir -p ${DEV_HOME}
cat << EOF > ${DEV_HOME}/.gitconfig
[safe]
directory = /src
EOF
docker run \
--platform linux/amd64 \
-it \
--rm \
--network=host \
-w /src \
-v $(pwd):/src \
-u $(id -u):$(id -g) \
-v ${DEV_HOME}:/home/${USER} \
-e HOME=/home/${USER} \
-e USER \
-e PANTS_WATCH_FILESYSTEM=false \
-e PANTS_LOCAL_CACHE=false \
-e PANTS_PANTSD=false \
-e PANTS_LOCAL_STORE_PROCESSES_MAX_SIZE_BYTES=1600000000 \
-e PANTS_LOCAL_STORE_FILES_MAX_SIZE_BYTES=2560000000 \
-e PANTS_LOCAL_STORE_DIRECTORIES_MAX_SIZE_BYTES=1600000000 \
${IMG}
pantsbuild/pants