gentle-flower-25372
06/12/2024, 8:42 PM.pants.bootstrap
#!/bin/sh
set -x
[[ -z "${BUILD_VERSION-}" ]] && export BUILD_VERSION=local
If I run the command without the BUILD_VERSION env variable set, pants runs fine:
$ pants package path/to/docker:target
++ [[ -z '' ]]
++ export BUILD_VERSION=local
++ BUILD_VERSION=local
...
If I run the command with the BUILD_VERSION env variables set, pants doesn't really run (not that I can tell) and exits 1. No additional logs when running with -ldebug
$ BUILD_VERSION=1.2.3 pants -ldebug package path/to/docker:target
++ [[ -z 1.2.3 ]]
$ echo $?
1