great-art-3505
06/10/2024, 11:59 PM.pants.bootstrap
file at the root of the repo meant to be sourced only when the current directory is at the root too? https://www.pantsbuild.org/2.21/docs/using-pants/key-concepts/options#pantsbootstrap-filecurved-television-6568
06/11/2024, 5:01 AMhappy-kitchen-89482
06/11/2024, 5:29 AMcurved-television-6568
06/11/2024, 6:14 AM.pants.bootstrap
does work for me from a project subfolder, but it may mess up assumptions about CWD and config file paths etc. What kind of issue do you experience?great-art-3505
06/11/2024, 6:37 AMPANTS_SOURCE
and PANTS_PANTSD=true
.
After removing those and using the version provided by scie-pants, the script gets sourced from any directory.great-art-3505
06/11/2024, 6:38 AMgreat-art-3505
06/11/2024, 6:39 AM#!/usr/bin/env bash
# -*- sh -*-
GIT_HASH=$(git rev-parse --short HEAD)
[[ $(git status --short) != "" ]] && {
GIT_HASH="$GIT_HASH-dirty"
}
export GIT_HASH
the errors that I was getting was that the env var GIT_HASH
was not setcurved-television-6568
06/11/2024, 6:41 PM