I'm totally confused right now. In my monorepo I ...
# general
g
I'm totally confused right now. In my monorepo I am trying to add a
.pants.bootstrap
Copy code
#!/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:
Copy code
$ 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
Copy code
$ BUILD_VERSION=1.2.3 pants -ldebug package path/to/docker:target
++ [[ -z 1.2.3 ]]
$ echo $?
1